Artist set to DUMMY #265
Owner
```
File "/home/kae/mm/./app/musicmuster.py", line 1304, in import_files
1295 def import_files(self) -> None:
(...)
1300
1301 import_files: list[TrackFileData] = []
1302
1303 with db.Session() as session:
--> 1304 dlg = ReplaceFilesDialog(
1305 session=session,
..................................................
import_files = []
self = <__main__.Window object at 0x7f2991141870>
session = <sqlalchemy.orm.session.Session object at 0x7f296777e410>
..................................................
File "/home/kae/mm/app/dialogs.py", line 109, in __init__
38 def __init__(
39 self,
40 session: Session,
41 main_window: QMainWindow,
42 *args: Qt.WindowType,
43 **kwargs: Qt.WindowType,
44 ) -> None:
(...)
105 match_track = self.check_by_basename(
106 session, new_file_path, rf.tags["artist"], rf.tags["title"]
107 )
108 if not match_track:
--> 109 match_track = self.check_by_title(
110 session, new_file_path, rf.tags["artist"], rf.tags["title"]
..................................................
self = <dialogs.ReplaceFilesDialog object at 0x7f296c121510>
session = <sqlalchemy.orm.session.Session object at 0x7f295a905450>
main_window = <__main__.Window object at 0x7f2991141870>
args = ()
kwargs = {}
match_track = None
self.check_by_basename = <method 'ReplaceFilesDialog.check_by_basename' of <dialogs.R
eplaceFilesDialog object at 0x7f296c121510> dialogs.py:171>
new_file_path = '/home/kae/music/Singles/tmp/Boat on the River - Styx.mp3'
rf.tags = {'title': 'Boat on the River',
'artist': 'Styx',
'bitrate': 320,
'duration': 191000}
self.check_by_title = <method 'ReplaceFilesDialog.check_by_title' of <dialogs.Repl
aceFilesDialog object at 0x7f296c121510> dialogs.py:195>
..................................................
File "/home/kae/mm/app/dialogs.py", line 208, in check_by_title
195 def check_by_title(
196 self, session: Session, new_path: str, new_path_artist: str, new_path_title: str
197 ) -> Optional[Tracks]:
(...)
204 if candidates_by_title:
205 # Check artist tag
206 for cbt in candidates_by_title:
207 try:
--> 208 cbt_artist = get_tags(cbt.path)["artist"]
209 if cbt_artist.lower() == new_path_artist.lower():
..................................................
self = <dialogs.ReplaceFilesDialog object at 0x7f296c121510>
session = <sqlalchemy.orm.session.Session object at 0x7f295a905450>
new_path = '/home/kae/music/Singles/tmp/Boat on the River - Styx.mp3'
new_path_artist = 'Styx'
new_path_title = 'Boat on the River'
candidates_by_title = [<Track(id=2931, title=Boat on the River, artist=Styx, path=
DUMMY>, ]
cbt = <Track(id=2931, title=Boat on the River, artist=Styx, path=D
UMMY>
cbt.path = 'DUMMY'
..................................................
---- (full traceback above) ----
File "/home/kae/mm/./app/musicmuster.py", line 1304, in import_files
dlg = ReplaceFilesDialog(
File "/home/kae/mm/app/dialogs.py", line 109, in __init__
match_track = self.check_by_title(
File "/home/kae/mm/app/dialogs.py", line 208, in check_by_title
cbt_artist = get_tags(cbt.path)["artist"]
KeyError: 'artist'
```
bug
label
Fix MariaDB bug workaround
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?