You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #341 ensures that all empty playlists are ignored, it's better to throw an error if no playlists with videos remain, rather than creating an empty ZIM file.
In the extract_videos_list method, after removing the empty playlists, adding the following two lines should be enough to throw an error:
forplaylistinempty_playlists:
self.playlists.remove(playlist)
# Add these two linesifnotself.playlists:
raiseException("No videos found in playlists")
From #341 (review)
What happens when the channel has no video, or the playlist(s) have no video in the end? Do we create an almost empty ZIM?
We need to ensure that scraper fails in such a situation with a clear error message.
The text was updated successfully, but these errors were encountered: