summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
c293451)
Eg: https://www.youtube.com/hashtag/youtube
:ci skip dl
_TFA_URL = 'https://accounts.google.com/_/signin/challenge?hl=en&TL={0}'
_RESERVED_NAMES = (
_TFA_URL = 'https://accounts.google.com/_/signin/challenge?hl=en&TL={0}'
_RESERVED_NAMES = (
- r'embed|e|watch_popup|channel|c|user|playlist|watch|w|v|movies|results|shared|'
+ r'embed|e|watch_popup|channel|c|user|playlist|watch|w|v|movies|results|shared|hashtag|'
r'storefront|oops|index|account|reporthistory|t/terms|about|upload|signin|logout|'
r'feed/(?:watch_later|history|subscriptions|library|trending|recommended)')
r'storefront|oops|index|account|reporthistory|t/terms|about|upload|signin|logout|'
r'feed/(?:watch_later|history|subscriptions|library|trending|recommended)')
(?:
(?:channel|c|user)/|
(?P<not_channel>
(?:
(?:channel|c|user)/|
(?P<not_channel>
(?:playlist|watch)\?.*?\blist=
)|
(?!(?:%s)\b) # Direct URLs
(?:playlist|watch)\?.*?\blist=
)|
(?!(?:%s)\b) # Direct URLs
'gridVideoRenderer': (self._grid_entries, 'items'),
'playlistVideoRenderer': (self._playlist_entries, 'contents'),
'itemSectionRenderer': (self._playlist_entries, 'contents'),
'gridVideoRenderer': (self._grid_entries, 'items'),
'playlistVideoRenderer': (self._playlist_entries, 'contents'),
'itemSectionRenderer': (self._playlist_entries, 'contents'),
+ 'richItemRenderer': (extract_entries, 'contents'), # for hashtag
}
continuation_items = try_get(
response, lambda x: x['onResponseReceivedActions'][0]['appendContinuationItemsAction']['continuationItems'], list)
}
continuation_items = try_get(
response, lambda x: x['onResponseReceivedActions'][0]['appendContinuationItemsAction']['continuationItems'], list)
if key not in known_renderers:
continue
video_items_renderer = {known_renderers[key][1]: continuation_items}
if key not in known_renderers:
continue
video_items_renderer = {known_renderers[key][1]: continuation_items}
+ continuation_list = [None]
for entry in known_renderers[key][0](video_items_renderer):
yield entry
for entry in known_renderers[key][0](video_items_renderer):
yield entry
- continuation = self._extract_continuation(video_items_renderer)
+ continuation = continuation_list[0] or self._extract_continuation(video_items_renderer)
break
if video_items_renderer:
continue
break
if video_items_renderer:
continue