|
|
@ -2435,7 +2435,7 @@ class PlaylistEntries:
|
|
|
|
@classmethod
|
|
|
|
@classmethod
|
|
|
|
def parse_playlist_items(cls, string):
|
|
|
|
def parse_playlist_items(cls, string):
|
|
|
|
if string.startswith(',') or string.endswith(','):
|
|
|
|
if string.startswith(',') or string.endswith(','):
|
|
|
|
raise ValueError('There is an invalid leading comma or a trailing comma')
|
|
|
|
raise ValueError('There is an invalid leading comma or a trailing comma')
|
|
|
|
for segment in string.split(','):
|
|
|
|
for segment in string.split(','):
|
|
|
|
if not segment:
|
|
|
|
if not segment:
|
|
|
|
raise ValueError('There are two or more consecutive commas')
|
|
|
|
raise ValueError('There are two or more consecutive commas')
|
|
|
|