diff --git a/yt_stats.py b/yt_stats.py index 6b230af..d70cb8d 100644 --- a/yt_stats.py +++ b/yt_stats.py @@ -97,7 +97,7 @@ def _get_channel_content_per_page(self, url): channel_playlists = dict() if 'items' not in data: print('Error! Could not get correct channel data!\n', data) - return channel_videos, channel_videos, None + return channel_videos, channel_playlists, None nextPageToken = data.get("nextPageToken", None) @@ -133,4 +133,4 @@ def dump(self): with open(filename, 'w') as f: json.dump(fused_data, f, indent=4) - print('file dumped to', filename) \ No newline at end of file + print('file dumped to', filename)