Skip to content

Commit 959f29b

Browse files
committed
* updating readme, license and assets
1 parent fcce551 commit 959f29b

File tree

4 files changed

+108
-30
lines changed

4 files changed

+108
-30
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 imfx77
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Readme.md

+87-30
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,97 @@
1-
Genius.com Lyrics Plugin for Synology Audio Station
2-
=
1+
DarkLyrics.com Lyrics Plugin for Synology Audio Station
2+
=======================================================
33

4-
How to Install
5-
-------------
6-
- Download **Ac_K_Genius-X.XX.aum** first.
7-
- Open **Audio Station**, go to **Settings**, select **Lyrics Plugin** tab.
8-
- Click on **Add** and select the downloaded plugin.
9-
- Check the **Enabled** box in front of the added plugin.
10-
- You're down!
4+
Wazzup, metalheads?
115

12-
Tips
13-
-------------
14-
- Featured Artist(s) must be in the ID3 Tag "Title" field like "Song Title Feat. Artists" or "Song Title (feat. Artists)"
6+
Been searching for a Synology audio lyrics plugin to match your metal music collection?
7+
Me too, for quite a while. And since there wasn't any, I eventually made this one.
8+
[DarkLyrics](http://www.darklyrics.com/) currently supplies lyrics for **13 800+** albums from **4500+** bands of all metal & rock genres.
159

16-
How to Pack the AUM Module
17-
-------------
18-
- **Linux** :
19-
> tar zcf mymodule.aum INFO lyric.php
10+
Enjoy 🤘
2011

21-
- **Windows** :
22-
> bsdtar zcf mymodule.aum INFO lyric.php
12+
Requirements
13+
------------
2314

24-
ChangeLog
25-
-------------
15+
The Synology Audio Station tries to fetch the **"artist name"** and **"song title"** for the chosen song and pass them to the plugin, which in turn uses them to make a search request for lyrics online.
16+
So, please, make sure that:
2617

27-
**1.01**
28-
- Initial Release
18+
* You have an Internet connection that is visible to the Synology NAS.
19+
* If your audio files support metadata tags (e.g. ID3, vorbis, etc), then the **"Artist"** and the **"Title"** fields must be correctly filled. Audio Station handles fairly well a bunch of different [file formats](https://www.synology.com/en-nz/dsm/7.1/software_spec/audio_station) and you can manage their metadata seamlessly through the AS interface by editing **"Song information"** for a single song or for a selection of multiple songs at once.
20+
* Otherwise, if no metadata tags are available, Audio Station will use the file names as song titles (and no separate artist tag will be passed to the plugin). In this case you should adopt some file naming policy that includes both the artist and the title e.g. **"Artist Name - Song Title.wav"**, thus the whole info will reach the plugin.
2921

30-
**1.02**
31-
- Fix Genius Lyrics HTML Anchor
32-
- Change the way to find the good song lyrics link
22+
![AS Song Info](/assets/AS_SongInfo.png)
3323

34-
**1.03/1.04**
35-
- Fix Genius Lyrics HTML Anchor (Again...)
24+
Installation
25+
------------
26+
27+
1. Download the latest **ImFx_DarkLyrics-XXXX.XX.aum** from the [**/dist**](https://github.com/imfx77/Dark-Lyrics-Plugin-Synology/tree/master/dist) folder of the repo.
28+
2. Open **Audio Station**, make sure you login with account that has **Admin** privileges, go to **Settings**, select **Lyrics Plugin** tab.
29+
3. Click on **Add**, browse to the downloaded plugin file, select it and add it.
30+
4. Check the **Enabled** box in front of the added plugin.
31+
5. If you have multiple plugins, reorder them in the desired priority. If lyrics are not found by the first active one AS will try the next one available and so on.
32+
6. When you download a new version of a plugin, you may either remove the old one, or simply deactivate it, or keep all plugin versions active but manage their order.
33+
7. In order for a change of the plugins configuration to take effect you may need to refresh the AS session (e.g. logout and login again, but usually a simple refresh of the browser page is sufficient)
34+
35+
* Ready to go!
36+
37+
![AS Settings](/assets/AS_Settings.png)
38+
39+
Problems, Solving and Reporting
40+
-------------------------------
41+
42+
It is possible that no lyrics can be found for some songs, or wrong lyrics are found.
43+
Please, read the following explanations, and try resolving the problems on your own before you complain or post a bug.
44+
45+
1. Lyrics cannot be found
46+
47+
* The simplest explanation, of course - there is no data about this band and/or song in DarkLyrics' database, nothing to do about that 😕 Except maybe submit the lyrics 😄
48+
* The metadata tags or the file name of your song have a misspelled artist and/or title
49+
* The metadata tags or the file name of your song contain extra terms - e.g. "bonus song", "intro", "instrumental", "YYYY" - that are not an actual part of the title and are bugging the search
50+
* On rare occasion, it might be the other way around - band or song name are misspelled on DarkLyrics' side. I don't know what is the way to issue corrections on existing bands/songs/lyrics, so this one sucks 😕
51+
* On even rarer occasion, the song is there, everything is named correctly on both Audio Station and DarkLyric sides, yet the search yields empty or wrong - sorry, absolutely no clue about this one, guess DarkLyrics search is not perfect after all 😉
52+
* The search can eventually match a song that is a cover from another artist, or is present in multiple albums (e.g. compilations, best of, remastered, etc.), this will probably show a different heading but it should be essentially the same lyrics if they were correctly submitted
53+
2. Wrong lyrics are found
54+
55+
* This mostly happens because of the above problem (1), when lyrics for the specific band and/or song cannot be found the search will return the closest matches to the given search terms, which might appear totally arbitrary
56+
* On rare occasion, when the search terms are a few simple words, multiple results may be listed, and even though the target song is among them the top best match might not be it
57+
3. Steps to Check and Resolve
58+
59+
* On either problem (1) or (2), the first thing to check is - go to [DarkLyrics.com](http://www.darklyrics.com/) and search manually entering `<ARTIST> <TITLE>` in the search field exactly as spelled in your song's tags. See if site's search returns a sensible result as a top match song, and if it does (while the plugin fails) then post a `bug` here, with all search data provided alongside, and I will try to pinpoint the problem.
60+
* If the manual search itself returns nothing or bulshit (i.e. the plugin is not to blame), then understanding what is the cause of the problem may take several steps further:
61+
* Try to find the band first - search for the name or better browse for it manually using the letter links in the top bar. If the band is not there - problem found. Ensure you are spelling it right! It's not absolutely impossible that a band name on DarkLyrics is misspelled but it would be really really weird 😲
62+
* When having found the band, then browse the albums and songs. If any of them is missing - problem found.
63+
* If the target song is there, then compare its title and the exact spelling of your song and the one on DarkLyrics.
64+
* In case of misspelled band or song name at your side, consider renaming those locally via Audio Station to match the online database - then play the song once again and observe the lyrics.
65+
66+
Releases
67+
--------
68+
69+
Please, refer the [**/dist**](https://github.com/imfx77/Dark-Lyrics-Plugin-Synology/tree/master/dist) folder of this repo for latest builds.
70+
71+
The version denotes the date of the build at which the plugin was compatible and correctly working against the DarkLyrics site.
72+
As the site's search functionality, lyrics formatting or cookies policy may change over time, so should the plugin in order to match those changes, thus new versions will be issued.
73+
74+
* **2024.01** : `Initial Release`
75+
76+
Manual Packing of AUM
77+
---------------------
78+
79+
**Linux**
80+
81+
> tar zcf module_name-version.aum INFO ImFxDarkLyrics.php ImFxCommon.php
82+
83+
**Windows 10+**
84+
85+
> tar -zcf module_name-version.aum INFO ImFxDarkLyrics.php ImFxCommon.php
86+
87+
License
88+
-------
89+
90+
The plugin is provided under the [MIT](LICENSE) license.
3691

3792
Credits
38-
-------------
39-
- Frank Lai for source code of https://bitbucket.org/franklai/synologylyric/
40-
- https://global.download.synology.com/download/Document/DeveloperGuide/AS_Guide.pdf
93+
-------
94+
95+
* **Ac_K** for [Genius Lyrics Plugin](https://github.com/AcK77/Genius-Lyrics-Plugin-Synology), I am actually not using a bit of it, yet originally forked from it.
96+
* **Frank Lai** for the source code of [Fujirou Lyrics Plugins](https://github.com/franklai/synologylyric/tree/master/src) which are the main reference.
97+
* The [Lyrics Module Development Guide](https://global.download.synology.com/download/Document/DeveloperGuide/AS_Guide.pdf) for **Synology Audio Station**, the PDF is also included in the [**/doc**](https://github.com/imfx77/Dark-Lyrics-Plugin-Synology/tree/master/doc) folder of this repo.

assets/AS_Settings.png

39.6 KB
Loading

assets/AS_SongInfo.png

33.8 KB
Loading

0 commit comments

Comments
 (0)