[artstation] fix embedded videos (#8972)

This commit is contained in:
Mike Fährmann
2026-02-01 12:56:44 +01:00
parent 1a8ccbe720
commit b37acd1e28

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2018-2025 Mike Fährmann
# Copyright 2018-2026 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -88,7 +88,8 @@ class ArtstationExtractor(Extractor):
if not self.videos:
return
page = self.request(url).text
return text.extr(page, ' src="', '"')
return text.extract(
page, ' src="', '"', page.find('id="video"')+1)[0]
if url:
# external URL