diff options
author | Simon Sawicki <contact@grub4k.xyz> | 2023-12-30 22:27:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-30 22:27:36 +0100 |
commit | f9fb3ce86e3c6a0c3c33b45392b8d7288bceba76 (patch) | |
tree | 4238cec16764841f1c61b4d8860b87615dfedd6b /yt_dlp/extractor/floatplane.py | |
parent | 5f009a094f0e8450792b097c4c8273622778052d (diff) |
[cleanup] Misc (#8598)
Authored by: bashonly, pukkandan, seproDev, Grub4K
Co-authored-by: bashonly <bashonly@protonmail.com>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Diffstat (limited to 'yt_dlp/extractor/floatplane.py')
-rw-r--r-- | yt_dlp/extractor/floatplane.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yt_dlp/extractor/floatplane.py b/yt_dlp/extractor/floatplane.py index 09abb40bf..2cf4d4e64 100644 --- a/yt_dlp/extractor/floatplane.py +++ b/yt_dlp/extractor/floatplane.py @@ -173,8 +173,8 @@ class FloatplaneIE(InfoExtractor): 'formats': formats, }) - uploader_url = format_field(traverse_obj( - post_data, 'creator'), 'urlname', 'https://www.floatplane.com/channel/%s/home', default=None) + uploader_url = format_field( + post_data, [('creator', 'urlname')], 'https://www.floatplane.com/channel/%s/home') or None channel_url = urljoin(f'{uploader_url}/', traverse_obj(post_data, ('channel', 'urlname'))) post_info = { @@ -248,7 +248,7 @@ class FloatplaneChannelIE(InfoExtractor): for post in page_data or []: yield self.url_result( f'https://www.floatplane.com/post/{post["id"]}', - ie=FloatplaneIE, video_id=post['id'], video_title=post.get('title'), + FloatplaneIE, id=post['id'], title=post.get('title'), release_timestamp=parse_iso8601(post.get('releaseDate'))) def _real_extract(self, url): @@ -264,5 +264,5 @@ class FloatplaneChannelIE(InfoExtractor): return self.playlist_result(OnDemandPagedList(functools.partial( self._fetch_page, display_id, creator_data['id'], channel_data.get('id')), self._PAGE_SIZE), - display_id, playlist_title=channel_data.get('title') or creator_data.get('title'), - playlist_description=channel_data.get('about') or creator_data.get('about')) + display_id, title=channel_data.get('title') or creator_data.get('title'), + description=channel_data.get('about') or creator_data.get('about')) |