2014-06-25, 01:03
@ronie: I can see by looking at the current code (below) that it doesn't consider the scenario in which the file names contain the form %N %A - %T (Track Artist - Title.ext), e.g. '05 Marillion - Montréal.flac' . I just finished retagging my whole music library with Musicbrainz Picard to have this naming convention, which is available in XBMC, and to my surprise I am unable to get .lrc lyrics online, download them and saved them locally.
Would you be so kind Ronie to include this form, so the .lrc lyrics could be found again online? Thank you!
From utilities.py:
Obs. if form %A\%B\%N %T is selected in configuration pane:
1) Somehow the script manages to find the lyrics in the form 'Track Artist - Title.ext' inside the 'Lyrics' folder and displays them, however it can't find any new online .lrc lyrics as explained above.
2) Only .txt lyrics are found online, downloaded and saved as 'Track Artist - Title.txt'.
Would you be so kind Ronie to include this form, so the .lrc lyrics could be found again online? Thank you!
From utilities.py:
Code:
def get_artist_from_filename(filename):
try:
artist = ''
title = ''
basename = os.path.basename( filename )
# Artist - title.ext
if ( __addon__.getSetting( "read_filename_format" ) == "0" ):
artist = basename.split( "-", 1 )[ 0 ].strip()
title = os.path.splitext( basename.split( "-", 1 )[ 1 ].strip() )[ 0 ]
# Artist/Album/title.ext or Artist/Album/Track title.ext
elif ( __addon__.getSetting( "read_filename_format" ) in ( "1", "2", ) ):
artist = os.path.basename( os.path.split( os.path.split( filename )[ 0 ] )[ 0 ] )
# Artist/Album/title.ext
if ( __addon__.getSetting( "read_filename_format" ) == "1" ):
title = os.path.splitext( basename )[ 0 ]
# Artist/Album/Track title.ext
elif ( __addon__.getSetting( "read_filename_format" ) == "2" ):
title = os.path.splitext( basename )[ 0 ].split( " ", 1 )[ 1 ]
Obs. if form %A\%B\%N %T is selected in configuration pane:
1) Somehow the script manages to find the lyrics in the form 'Track Artist - Title.ext' inside the 'Lyrics' folder and displays them, however it can't find any new online .lrc lyrics as explained above.
2) Only .txt lyrics are found online, downloaded and saved as 'Track Artist - Title.txt'.