mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 12:56:24 -05:00
Removing troubleshooting print.
This commit is contained in:
parent
c8810fbeba
commit
8318224db6
2 changed files with 3 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ from wrolpi.vars import PYTEST
|
|||
from .channel.lib import create_channel, get_channel
|
||||
from .common import apply_info_json, get_no_channel_directory, \
|
||||
get_videos_directory
|
||||
from .lib import upsert_video, refresh_channel_videos, get_downloader_config, get_channel_source_id
|
||||
from .lib import upsert_video, refresh_channel_videos, get_downloader_config, get_channel_source_id, validate_video
|
||||
from .models import Video, Channel
|
||||
from .schema import ChannelPostRequest
|
||||
from .video_url_resolver import video_url_resolver
|
||||
|
|
@ -196,8 +196,8 @@ class VideoDownloader(Downloader, ABC):
|
|||
f'attempt to download it again.')
|
||||
|
||||
with get_db_session(commit=True) as session:
|
||||
channel = session.query(Channel).filter_by(id=channel.id).one()
|
||||
channel.add_video_to_skip_list(source_id)
|
||||
c = session.query(Channel).filter_by(id=channel.id).one()
|
||||
c.add_video_to_skip_list(source_id)
|
||||
except Exception:
|
||||
# Could not skip this video, it may not have a channel.
|
||||
logger.warning(f'Could not skip video {url}')
|
||||
|
|
|
|||
|
|
@ -548,7 +548,6 @@ def import_channels_config():
|
|||
# values not in the config.
|
||||
full_data = channel.dict()
|
||||
full_data.update(data)
|
||||
print(f'{full_data=}')
|
||||
full_data['skip_download_videos'] = list(set(data.get('skip_download_videos', {})))
|
||||
channel.update(full_data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue