|
|
|
@ -10,7 +10,6 @@ from home.src.download.subscriptions import (
|
|
|
|
|
PlaylistSubscription,
|
|
|
|
|
)
|
|
|
|
|
from home.src.frontend.watched import WatchState
|
|
|
|
|
from home.src.index.channel import YoutubeChannel
|
|
|
|
|
from home.src.index.playlist import YoutubePlaylist
|
|
|
|
|
from home.src.ta.helper import UrlListParser
|
|
|
|
|
from home.src.ta.ta_redis import RedisArchivist, RedisQueue
|
|
|
|
@ -71,7 +70,6 @@ class PostData:
|
|
|
|
|
"db-backup": self._db_backup,
|
|
|
|
|
"db-restore": self._db_restore,
|
|
|
|
|
"fs-rescan": self._fs_rescan,
|
|
|
|
|
"delete-channel": self._delete_channel,
|
|
|
|
|
"delete-playlist": self._delete_playlist,
|
|
|
|
|
"find-playlists": self._find_playlists,
|
|
|
|
|
}
|
|
|
|
@ -274,12 +272,6 @@ class PostData:
|
|
|
|
|
rescan_filesystem.delay()
|
|
|
|
|
return {"success": True}
|
|
|
|
|
|
|
|
|
|
def _delete_channel(self):
|
|
|
|
|
"""delete channel and all matching videos"""
|
|
|
|
|
channel_id = self.exec_val
|
|
|
|
|
YoutubeChannel(channel_id).delete_channel()
|
|
|
|
|
return {"success": True}
|
|
|
|
|
|
|
|
|
|
def _delete_playlist(self):
|
|
|
|
|
"""delete playlist, only metadata or incl all videos"""
|
|
|
|
|
playlist_dict = self.exec_val
|
|
|
|
|