Compare commits
2 Commits
da2daab16a
...
11c94c757e
| Author | SHA1 | Date | |
|---|---|---|---|
| 11c94c757e | |||
| 4421e68d9d |
@@ -212,8 +212,7 @@ def videos(data):
|
|||||||
y = safeTraverse(entry, ['lockupViewModel'])
|
y = safeTraverse(entry, ['lockupViewModel'])
|
||||||
if not isinstance(y, dict):
|
if not isinstance(y, dict):
|
||||||
continue
|
continue
|
||||||
is_mix_or_playlist = safeTraverse(entry, ["lockupViewModel", "contentImage", "collectionThumbnailViewModel", "primaryThumbnail", "thumbnailViewModel", "overlays", 0, "thumbnailOverlayBadgeViewModel", "thumbnailBadges", 0, "thumbnailBadgeViewModel", "icon", "sources", 0, "clientResource", "imageName"], default="") in ("MIX", "PLAYLISTS")
|
if safeTraverse(y, ["contentType"], default="LOCKUP_CONTENT_TYPE_VIDEO") != "LOCKUP_CONTENT_TYPE_VIDEO":
|
||||||
if is_mix_or_playlist:
|
|
||||||
# neither mixes nor playlists are currently supported by the invidious api
|
# neither mixes nor playlists are currently supported by the invidious api
|
||||||
continue
|
continue
|
||||||
# note: this model is similar, but not identical to the one in ythdd_struct_parser. perhaps they can be both handled in the struct parser some time.
|
# note: this model is similar, but not identical to the one in ythdd_struct_parser. perhaps they can be both handled in the struct parser some time.
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ def parseFormatStreams(wdata_fstream: dict, ydata_stream: dict) -> dict:
|
|||||||
|
|
||||||
fstream = {
|
fstream = {
|
||||||
"url": stream_url,
|
"url": stream_url,
|
||||||
"itag": wdata_fstream["itag"],
|
"itag": str(wdata_fstream["itag"]),
|
||||||
"type": wdata_fstream["mimeType"],
|
"type": wdata_fstream["mimeType"],
|
||||||
"quality": wdata_fstream["quality"],
|
"quality": wdata_fstream["quality"],
|
||||||
"bitrate": str(wdata_fstream["bitrate"]),
|
"bitrate": str(wdata_fstream["bitrate"]),
|
||||||
|
|||||||
Reference in New Issue
Block a user