MCPcopy Create free account
hub / github.com/Syncplay/syncplay / playlistIsValid

Function playlistIsValid

syncplay/utils.py:440–445  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

438
439
440def playlistIsValid(files):
441 if len(files) > constants.PLAYLIST_MAX_ITEMS:
442 return False
443 elif sum(map(len, files)) > constants.PLAYLIST_MAX_CHARACTERS:
444 return False
445 return True
446
447
448def getDomainFromURL(URL):

Callers 2

setPlaylistMethod · 0.90
setPlaylistMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected