dmzoneill / lidarr-youtube-downloader

Lidar youtube downloader
Apache License 2.0
44 stars 10 forks source link

Deployment Loop and "workaround". #11

Open famewolf opened 1 year ago

famewolf commented 1 year ago

I received this error before the recent mod to use yt-dlp as well as after. Previously you could make the error go away by pointing the app to a new directory where no music was present. In this case the only thing in lidarr's wanted list is Kelly Clarkson's Breakway album and although a "Breakaway (2018) folder exists lyd creates a "Breakaway" folder so not sure why it's occuring.

The workaround is to point lyd to an empty subdir of the music folder then import those tracks.

2023-05-10 14:46:17.400667+00:00Starting Lidarr Youtube Downloader 2023-05-10 14:46:17.500630+00:00Album: 1/1 Track: 1/19 2023-05-10 14:46:17.500695+00:00================================================================================ 2023-05-10 14:46:17.500703+00:002023-05-10T14:46:17.500703917Z 2023-05-10 14:46:17.500708+00:00Path : /mnt/tank/shared/media/music/Kelly Clarkson 2023-05-10 14:46:17.500722+00:00Artist : Kelly Clarkson 2023-05-10 14:46:17.500727+00:00Album : Breakaway 2023-05-10 14:46:17.500731+00:00Track : Breakaway 2023-05-10 14:46:17.500736+00:00Genre : Alternative Rock 2023-05-10 14:46:17.500740+00:00Date : 2004 2023-05-10 14:46:17.500748+00:00CD Count : 1 2023-05-10 14:46:17.500753+00:00CD No : 1 2023-05-10 14:46:17.500757+00:00Track No : 1/15 2023-05-10 14:46:17.500761+00:002023-05-10T14:46:17.500761919Z 2023-05-10 14:46:17.511525+00:00Traceback (most recent call last): 2023-05-10 14:46:17.511561+00:002023-05-10T14:46:17.511561964Z 2023-05-10 14:46:17.511578+00:00File "/lyd.py", line 605, in 2023-05-10 14:46:17.511585+00:00app() 2023-05-10 14:46:17.511589+00:002023-05-10T14:46:17.511589954Z 2023-05-10 14:46:17.511594+00:00File "/lyd.py", line 601, in run 2023-05-10 14:46:17.511598+00:00iterate_missing(artist, iterative) 2023-05-10 14:46:17.511607+00:002023-05-10T14:46:17.511607973Z 2023-05-10 14:46:17.511612+00:00File "/lyd.py", line 572, in iterate_missing 2023-05-10 14:46:17.511617+00:00iterate_records(json["records"], totalRecords, record_counter, artist_filter) 2023-05-10 14:46:17.511622+00:002023-05-10T14:46:17.511622688Z 2023-05-10 14:46:17.511627+00:00File "/lyd.py", line 526, in iterate_records 2023-05-10 14:46:17.511635+00:00iterate_tracks( 2023-05-10 14:46:17.511640+00:002023-05-10T14:46:17.511640188Z 2023-05-10 14:46:17.511644+00:00File "/lyd.py", line 498, in iterate_tracks 2023-05-10 14:46:17.511648+00:00get_song( 2023-05-10 14:46:17.511653+00:002023-05-10T14:46:17.511653099Z 2023-05-10 14:46:17.511657+00:00File "/lyd.py", line 371, in get_song 2023-05-10 14:46:17.511664+00:00update_lidarr_db(artistName, albumName, title, trackNumber, year) 2023-05-10 14:46:17.511669+00:002023-05-10T14:46:17.511669592Z 2023-05-10 14:46:17.511674+00:00File "/lyd.py", line 293, in update_lidarr_db 2023-05-10 14:46:17.511678+00:00album_id = get_lidarr_album_id(cur, albumName, year) 2023-05-10 14:46:17.511686+00:002023-05-10T14:46:17.511686155Z 2023-05-10 14:46:17.511690+00:00File "/lyd.py", line 236, in get_lidarr_album_id 2023-05-10 14:46:17.511694+00:00cur.execute( 2023-05-10 14:46:17.511699+00:002023-05-10T14:46:17.511699545Z 2023-05-10 14:46:17.511703+00:00sqlite3.OperationalError: no such table: Albums 2023-05-10 14:46:17.511708+00:002023-05-10T14:46:17.511708083Z

image image