1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-18 10:28:29 +00:00

[ie/rule34video] Fix text labels

This commit is contained in:
gmes78 2025-06-27 10:28:11 +01:00
parent 06c1a8cdff
commit 1a53a2eb63

View File

@ -83,11 +83,11 @@ def _real_extract(self, url):
categories, creators, uploader, uploader_url = [None] * 4
for col in get_elements_by_class('col', webpage):
label = clean_html(get_element_by_class('label', col))
if label == 'Categories:':
if label == 'Categories':
categories = list(map(clean_html, get_elements_by_class('item', col)))
elif label == 'Artist:':
elif label == 'Artist':
creators = list(map(clean_html, get_elements_by_class('item', col)))
elif label == 'Uploaded By:':
elif label == 'Uploaded by':
uploader = clean_html(get_element_by_class('name', col))
uploader_url = extract_attributes(get_element_html_by_class('name', col) or '').get('href')