Skip to content

Chartlyrcis and previous changes#13

Open
kaaholst wants to merge 11 commits into
abhimanyuPathania:masterfrom
kaaholst:master
Open

Chartlyrcis and previous changes#13
kaaholst wants to merge 11 commits into
abhimanyuPathania:masterfrom
kaaholst:master

Conversation

@kaaholst
Copy link
Copy Markdown

@kaaholst kaaholst commented Aug 9, 2017

Add ChartLyrics (http://www.chartlyrics.com/api.aspx) as source. The source is disabled by default.

Also fix a problem with LyricsMode, when artist name is all utf8. Failed e.g.. for Psy - Gangnam Style, whose Korean name is 싸이.

Note this is build on the cweiske master branch, as I had the same permission issues with the config file.

cweiske and others added 11 commits July 7, 2017 21:17
When the configuration file does not exist, it is automatically created
during runtime now and not on installation.

Also, the correct user config directory is used, according to the
operating system rules via the "appdirs" library.

Resolves: abhimanyuPathania#5
- Split configuration loading and validation
- Setting configuration values does not require a valid configuration
  anymore
- Configuration file is only written when something is changed
- A full configuration file is written each time, so there can
  be no partially invalid config files anymore
- Passing the source_dir as "normal" command line parameter
  (without "set") does not change config anymore
- source_dir must not be set in config file and may be passed
  as command line parameter

Resolves: abhimanyuPathania#4
Resolves: abhimanyuPathania#6
when artist name is all utf8.

Caused by first removing all non alphanumeric characters and the checking if
the first character is alpha.

Fixed by first checking if there are any characters before checking the first
character.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants