rename classes
This commit is contained in:
parent
52a8c981f6
commit
58ae73719c
@ -1218,7 +1218,7 @@ class MediaWatcher:
|
|||||||
self.observer.join()
|
self.observer.join()
|
||||||
|
|
||||||
|
|
||||||
class GetSource:
|
class GetSourceFromFolder:
|
||||||
"""
|
"""
|
||||||
give next clip, depending on shuffle mode
|
give next clip, depending on shuffle mode
|
||||||
"""
|
"""
|
||||||
@ -1268,7 +1268,7 @@ class GetSource:
|
|||||||
# main functions
|
# main functions
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
class GetSourceIter:
|
class GetSourceFromPlaylist:
|
||||||
"""
|
"""
|
||||||
read values from json playlist,
|
read values from json playlist,
|
||||||
get current clip in time,
|
get current clip in time,
|
||||||
@ -1586,12 +1586,12 @@ def main():
|
|||||||
|
|
||||||
if _playlist.mode and not stdin_args.folder:
|
if _playlist.mode and not stdin_args.folder:
|
||||||
watcher = None
|
watcher = None
|
||||||
get_source = GetSourceIter()
|
get_source = GetSourceFromPlaylist()
|
||||||
else:
|
else:
|
||||||
messenger.info('Start folder mode')
|
messenger.info('Start folder mode')
|
||||||
media = MediaStore()
|
media = MediaStore()
|
||||||
watcher = MediaWatcher(media)
|
watcher = MediaWatcher(media)
|
||||||
get_source = GetSource(media)
|
get_source = GetSourceFromFolder(media)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for src_cmd in get_source.next():
|
for src_cmd in get_source.next():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user