mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[moviefap] Replace call to str()
with compat.compat_str()
This commit is contained in:
parent
43b925ce74
commit
b971abe897
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
xpath_text,
|
xpath_text,
|
||||||
str_to_int
|
str_to_int
|
||||||
)
|
)
|
||||||
|
from ..compat import compat_str
|
||||||
|
|
||||||
|
|
||||||
class MovieFapIE(InfoExtractor):
|
class MovieFapIE(InfoExtractor):
|
||||||
|
@ -65,7 +66,7 @@ def __get_thumbnail_data(xml):
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
for i in range(first, last + 1):
|
for i in range(first, last + 1):
|
||||||
thumbnails.append({
|
thumbnails.append({
|
||||||
'url': pattern.replace('#', str(i)),
|
'url': pattern.replace('#', compat_str(i)),
|
||||||
'width': width,
|
'width': width,
|
||||||
'height': height
|
'height': height
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue