change message groups

pull/474/head
simon 1 year ago
parent 73c82a91c0
commit 3f4d0c0c76
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

@ -49,51 +49,51 @@ class BaseTask(Task):
TASK_CONFIG = { TASK_CONFIG = {
"update_subscribed": { "update_subscribed": {
"title": "Rescan your Subscriptions", "title": "Rescan your Subscriptions",
"group": "message:download:scan", "group": "download:scan",
}, },
"download_pending": { "download_pending": {
"title": "Downloading", "title": "Downloading",
"group": "message:download:run", "group": "download:run",
}, },
"extract_download": { "extract_download": {
"title": "Add to download queue", "title": "Add to download queue",
"group": "message:download:add", "group": "download:add",
},
"subscribe_to": {
"title": "Add Subscription",
"group": "message:download:subscribe",
}, },
"check_reindex": { "check_reindex": {
"title": "Reindex Documents", "title": "Reindex Documents",
"group": "message:settings:reindex", "group": "reindex:run",
}, },
"manual_import": { "manual_import": {
"title": "Manual video import", "title": "Manual video import",
"group": "message:settings:import", "group": "setting:import",
}, },
"run_backup": { "run_backup": {
"title": "Index Backup", "title": "Index Backup",
"group": "message:settings:backup", "group": "setting:backup",
}, },
"restore_backup": { "restore_backup": {
"title": "Restore Backup", "title": "Restore Backup",
"group": "message:settings:restore", "group": "setting:restore",
}, },
"rescan_filesystem": { "rescan_filesystem": {
"title": "Rescan your Filesystem", "title": "Rescan your Filesystem",
"group": "message:settings:filesystemscan", "group": "setting:filesystemscan",
}, },
"thumbnail_check": { "thumbnail_check": {
"title": "Check your Thumbnails", "title": "Check your Thumbnails",
"group": "message:settings:thumbnailcheck", "group": "setting:thumbnailcheck",
}, },
"resync_thumbs": { "resync_thumbs": {
"title": "Sync Thumbnails to Media Files", "title": "Sync Thumbnails to Media Files",
"group": "message:settings:thumbnailsync", "group": "setting:thumbnailsync",
}, },
"index_playlists": { "index_playlists": {
"title": "Index Channel Playlist", "title": "Index Channel Playlist",
"group": "message:channel:indexplaylist", "group": "channel:indexplaylist",
},
"subscribe_to": {
"title": "Add Subscription",
"group": "subscription:add",
}, },
} }
@ -139,7 +139,7 @@ class BaseTask(Task):
"level": level, "level": level,
"id": task_id, "id": task_id,
} }
key = f"{config.get('group')}:{task_id.split('-')[0]}" key = f"message:{config.get('group')}:{task_id.split('-')[0]}"
return message, key return message, key

Loading…
Cancel
Save