mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-07 15:25:12 +01:00
Update yt_dlp/utils/_utils.py
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
7002474336
commit
60eb1314bc
1 changed files with 2 additions and 0 deletions
|
|
@ -2434,6 +2434,8 @@ class PlaylistEntries:
|
|||
|
||||
@classmethod
|
||||
def parse_playlist_items(cls, string):
|
||||
if string.startswith(',') or string.endswith(','):
|
||||
raise ValueError('There is an invalid leading comma or a trailing comma')
|
||||
for segment in string.split(','):
|
||||
if not segment:
|
||||
raise ValueError('There are two or more consecutive commas')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue