From 6883a4734a3a35b535505040726dcd3d158606f7 Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 27 Mar 2023 10:27:18 -0600 Subject: [PATCH] Not re-favoriting videos. --- modules/videos/lib.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/videos/lib.py b/modules/videos/lib.py index 6e10db52..5bff6306 100644 --- a/modules/videos/lib.py +++ b/modules/videos/lib.py @@ -466,8 +466,11 @@ def import_channels_config(): # Favorite in the config is the name of the video_path. Add the channel directory onto this # video_path, so we can match the complete path for the Video. video_path = channel_dir / video_path - file_group = FileGroup.find_by_path(video_path, session) - if file_group: + file_group: FileGroup = FileGroup.find_by_path(video_path, session) + if file_group.tag_files: + # Video is already tagged or favorited. + pass + elif file_group: file_group.add_tag(favorites_tag, session) else: channel_import_logger.warning(f'Cannot find video to favorite: {video_path}')