projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[go] Improve and beautify _VALID_URL
[youtube-dl]
/
youtube_dl
/
extractor
/
foxgay.py
diff --git
a/youtube_dl/extractor/foxgay.py
b/youtube_dl/extractor/foxgay.py
index e887ae48869426617fdbf797182cef93f97ac2ef..512a106455cc7460d81f48d2890bc457fccbe661 100644
(file)
--- a/
youtube_dl/extractor/foxgay.py
+++ b/
youtube_dl/extractor/foxgay.py
@@
-5,6
+5,7
@@
import itertools
from .common import InfoExtractor
from ..utils import (
get_element_by_id,
from .common import InfoExtractor
from ..utils import (
get_element_by_id,
+ int_or_none,
remove_end,
)
remove_end,
)
@@
-46,7
+47,7
@@
class FoxgayIE(InfoExtractor):
formats = [{
'url': source,
formats = [{
'url': source,
- 'height':
resolution
,
+ 'height':
int_or_none(resolution)
,
} for source, resolution in zip(
video_data['sources'], video_data.get('resolutions', itertools.repeat(None)))]
} for source, resolution in zip(
video_data['sources'], video_data.get('resolutions', itertools.repeat(None)))]