IPB

Welcome Guest ( Log In | Register )

> Whole Album/Directory Lyrics Tool, Created a Lyrics Tool... help me improve it :)
ResidualImages
post Jun 8 2008, 04:36
Post #1


Member


Group: Full Members
Posts: 52
Joined: 8-June 08
From: Central Texas
Member No.: 7166
Mp3tag Version: 2.46a



New Version 1.0.0.19



'Lyrics' is released without warranty or implied fitness for a particular purpose.
This is fan-created for use by other fans of MP3Tag and AutoIT. Now with Lyrics Wiki data!

Any questions should be directed at Matt_Burke@baylor.edu

There are major changes to the .10+ version. There are now 3 steps. Export, Get Lyrics, and Import Lyrics. There is a Readme.PDF in the zip; I'll provide a Google Docs version here.

This tool relies on Internet Explorer being installed on your machine, and may from time to time create an Internet Explorer window that you can see. Feel free to close this window; I'm not sure why the object, which is set to IEobject.visible = false, is sometimes visible and doesn't automatically close. This has been optimized out, so it only uses one instance of Internet Explorer through the entire process. I have noticed that sometimes audio advertisements on the lyricswiki.com or darklyrics.com sites will begin to play on this invisible window. don't worry, you didn't suddenly get ghosts in your computer tongue.gif

SPEAKING OF WHICH:
This tool now defaults to LyricsWiki.com as its lookup; however, per Luctus's request, I have the option of DarkLyrics.com lookups as an alternative. Please review the changes in the Readme.pdf file, but feel free to ask for clarification or assistance. I have also just added ViewLyrics.com as an option, per Zedicus's request.

You can also just use the executable outside of MP3tag to get the lyrics ahead of time for complete directories or specific files. That way, you can just have an "import lyrics" action in MP3tag, and thereby skip the first 2 of the 3 steps in the above PDF. However, running the executable relies on parts of Windows that may not ship standard in European editions of Windows. That is why there is the option to create an 'Export file' from within MP3tag.

New "-quiet" feature to bypass summary window, and improvements to code that may address the 'variable error' issues that soehest found.

New "-nostrip" feature to skip the check for cell phone ringtone advertisement lines in lyrics from LyricsWiki. This feature is to address the missing lines that tappan is experiencing.

Also, like soehest also found, LyricsWiki has some songs that they give 'teaser' lyrics for, but are not allowed to display full lyrics. these are now treated as if the lyrics were not found at all.


Feedback welcome and appreciated.

~Matt

This post has been edited by ResidualImages: Aug 26 2014, 01:36
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
ResidualImages
post Nov 6 2010, 06:00
Post #2


Member


Group: Full Members
Posts: 52
Joined: 8-June 08
From: Central Texas
Member No.: 7166
Mp3tag Version: 2.46a



Original post edited

This post has been edited by ResidualImages: Nov 6 2010, 06:03
Go to the top of the page
 
+Quote Post
Mike_nl
post Nov 6 2010, 09:20
Post #3


Member


Group: Full Members
Posts: 307
Joined: 16-February 08
From: SE-Asia
Member No.: 6480
Mp3tag Version: 2.61a



I got an error:

***** ERROR: TIMEOUT Did NOT find lyrics for '0:03:41' by French Pop.

Details.
Artist: Vanessa Paradis
Title: Be My Baby
Album: Vanessa Paradis
Year: 2001
Genre: French Pop


--------------------
Life is too short, enjoy it
Go to the top of the page
 
+Quote Post
ResidualImages
post Nov 6 2010, 12:40
Post #4


Member


Group: Full Members
Posts: 52
Joined: 8-June 08
From: Central Texas
Member No.: 7166
Mp3tag Version: 2.46a



In my email, I saw that you asked about the IP address. LyricsPlugin.com changed over to using a PHP content redirector that queries a DNS 'viplyrics.com'. I know when I watch my IP addresses, I saw some 72 addresses instead, for instance. Not sure what's going on in the backend of their site, but i do an HTML body read to find a DIV class, and I've never had any security issues. I downloaded their JSes and found no threats or worrisome redirects aside from what I mentioned.


The program can output to a log file if you use the commandline. I haven't built in the /? switch, but the syntax for command line is "Lyrics.exe", and then optionally you can specify a directory, or individual files. If there are individual files, separate them by spaces, and include the full path to the files in quotes.
(for examples:
C:\downloads\Lyrics.exe Z:\Music Files\
or
Lyrics.exe "D:\Rob Zombie\Dragula.mp3" "D:\Enya\The Celts.mp3"
or even
Lyrics.exe "E:\MP3 Folder"
)

To output a log file, call "lyrics.exe > C:\LyricsLog.txt" or similar, and tell me what the contents of the log file are.

From the error you describe, the Lyrics executable is pulling '0:03:41' as the Song ID3 tag attribute 'Title', and therefore causing this error. I know I always fix the tags first, in MP3Tag, and
then run the Lyrics tool and the import Action

*********UPDATE:
I've now added a /debug switch to the command line interface that will pop up a window of all the file attributes I'm able to retrieve for each file selected or in the directory selected. Obviously, run the Lyrics.exe with the troublesome file, and add the debug switch like so:
Lyrics.exe "C:\Music\Be My Baby.mp3" /debug

Then that array of file attributes will tell me how your particular OS and files are configured and why, as you say in the details, the Title is not being pulled as 'Be My Baby' but instead as '0:03:41'; also, the artist should be 'Vanessa Paradis' not 'French Pop'. We'll get to the bottom of this difference in attributes if you help me! biggrin.gif

This post has been edited by ResidualImages: Nov 7 2010, 03:51
Go to the top of the page
 
+Quote Post
DetlevD
post Nov 6 2010, 14:45
Post #5


Member


Group: Full Members
Posts: 5031
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.63



QUOTE (ResidualImages @ Nov 6 2010, 12:40) *
... The program can output to a log file if you use the commandline. I haven't built in the /? switch, but the syntax for command line is "Lyrics.exe", and then optionally you can specify a directory, or individual files. If there are individual files, separate them by spaces, and include the full path to the files in quotes. ...
To output a log file, call "lyrics.exe > C:\LyricsLog.txt" or similar, and tell me what the contents of the log file are. ...
I've now added a /debug switch to the command line interface that will pop up a window of all the file attributes I'm able to retrieve for each file selected or in the directory selected. Obviously, run the Lyrics.exe with the troublesome file, and add the debug switch like so:
Lyrics.exe "C:\Music\Be My Baby.mp3" /debug
Then that array of file attributes will tell me how your particular OS and files are configured and why, ...


Well, a remarkable initiative.
Sorry to say that it does not work.
Note:
"http://lyricsplugin.com/" sends only a test page.
"http://www.lyricsplugin.com/" sends only a test page.


I've just downloaded the current version, but it does not work.
--> Note: Do not forget to count up version number 1.0 even for intermediate bug release.

When I did a commandline call ...
lyrics.exe "M:\MUSIK\ROCK\Z\ZZ TOP\1970 - ZZ Top's First Album\01_SomebodyElseBeenShakingYourTree_ZZTOP_ZTFA_1970.mp3" /debug >log.txt

... the /debug switch does nothing.
Redirection to file "log.txt" creates an empty file.
Error message in window: ***** Error retrieving Artist and Title from ''.


When I did this ...
lyrics.exe >log.txt
... and follows the upcoming file open dialog ...
... there came up a window with error message:
" Did NOT find lyrics for '00:02:28' by ."
... there was created a log file output with content:
http://www.lyricsplugin.com/wmplayer03/plugin/?artist=&title=00:02:28

I see no "array of file attributes".

DD.20101106.1446.CET

This post has been edited by DetlevD: Nov 6 2010, 14:47


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
ResidualImages
post Nov 6 2010, 15:34
Post #6


Member


Group: Full Members
Posts: 52
Joined: 8-June 08
From: Central Texas
Member No.: 7166
Mp3tag Version: 2.46a



I have no control over www.lyricsplugin.com, but yes, I do see it's just an apache test page at the root. try this link to see that the domain is working.

I personally hadn't tried to do both the /debug and > log.txt commands
At 6:30 AM all I had in me was enough brain to make the /debug switch activate if it is the last argument passed in.
I'm a little more awake now, and have edited the file. Latest version is 1.0.0.2, thanks for the reminder to increment.


you should get a window like so:



This post has been edited by dano: Nov 6 2010, 17:09
Go to the top of the page
 
+Quote Post
DetlevD
post Nov 7 2010, 03:11
Post #7


Member


Group: Full Members
Posts: 5031
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.63



QUOTE (ResidualImages @ Nov 6 2010, 15:34) *
... I personally hadn't tried to do both the /debug and > log.txt commands ...

You should better work out the usage and syntax description of your tool.

QUOTE (ResidualImages @ Nov 6 2010, 15:34) *
... you should get a window like so: ...

No window.
I've tried version 1.0.0.7, still the same effect, does not work on my Win XP SP3.

I have no problems to get a lyrics text when using a user defined Mp3tag tool:
[#20]
MTTOOLSNAME=LyricsVIP
MTTOOLSPARAM='http://www.google.com/cse?cx\u003d017751158110742404216%3Againppvv-i8&ie\u003dUTF-8&siteurl\u003dwww.lyricsvip.com&q\u003d'$replace(%artist% %title%,' ','+','?','%3F')
MTTOOLSPATH=C:\\Programs\\Internet Explorer\\iexplore.exe
MTTOOLSINST=0

Well, it needs a second click to step from Google to lyricsvip, but it works.

DD.20101107.0311.CET


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
ResidualImages
post Nov 7 2010, 03:47
Post #8


Member


Group: Full Members
Posts: 52
Joined: 8-June 08
From: Central Texas
Member No.: 7166
Mp3tag Version: 2.46a



I just tried this on a Windows XP SP3 box, by typing "lyrics.exe /debug" and the program prompts for directory or files, I chose directory I knew had an MP3 in it, and the screen popped up with the file attributes of the file in that directory.

Low and behold, the extended info is in different places on XP. Got the 1.0.0.8 version catching Windows versions. If I remember correctly, Vista and 7 are the same as far as their extended info. So now it works on XP and Windows 7.


By the way, I was also able to type:
lyrics.exe" "Z:\(Do You Wanna Date My) Avatar\Do You Wanna Date My Avatar.mp3" /debug > C:\log.txt
and had no issues under XP or 7... I'm terribly confused why you're not getting the window popping up I said you should either with command line or straight folder/file selection.

I would appreciate your continued testing of this now that XP is supported... I realize it's frustrating from your end, but you've helped.

As a side note, I ran this tool on 10,724 MP3s on a network drive today over gigabit switch. Took 8.5 hours to query for every one of those, but all I had to do to start it was click on the 'directories' button and select the root of the network-mapped music drive, and let it run in the background. that kind of ease and use is what I want more than just myself to have!
Go to the top of the page
 
+Quote Post
DetlevD
post Nov 7 2010, 07:55
Post #9


Member


Group: Full Members
Posts: 5031
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.63



QUOTE (ResidualImages @ Nov 7 2010, 03:47) *
... By the way, I was also able to type:
lyrics.exe" "Z:\(Do You Wanna Date My) Avatar\Do You Wanna Date My Avatar.mp3" /debug > C:\log.txt
and had no issues under XP or 7... I'm terribly confused why you're not getting the window popping up I said you should either with command line or straight folder/file selection. ...

When calling Lyrics.exe with parameter on the commandline there should not popup a file open oder folder open dialog, right?
See attached screenshot what happened.
Attached Image


QUOTE (ResidualImages @ Nov 7 2010, 03:47) *
...
Low and behold, the extended info is in different places on XP. Got the 1.0.0.8 version catching Windows versions. If I remember correctly, Vista and 7 are the same as far as their extended info. So now it works on XP and Windows 7. ...

I do not understand "extended info is in different places".
The artist and title info is in the ID3v2.4 tag within the mp3 file.

DD.20101107.0755.CET


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post

Posts in this topic
- ResidualImages   Whole Album/Directory Lyrics Tool   Jun 8 2008, 04:36
- - ouisltagger   This tool will be awesome! I've been want...   Jul 13 2008, 02:16
|- - ResidualImages   alright. sorry i've been out of town and such ...   Aug 5 2008, 19:41
- - ouisltagger   After using the script for a little bit I found a ...   Aug 7 2008, 03:12
|- - ResidualImages   i'll look into their work as well, maybe bring...   Aug 7 2008, 03:27
- - ResidualImages   Original post edited   Nov 6 2010, 06:00
|- - Mike_nl   I got an error: ***** ERROR: TIMEOUT Did NOT fin...   Nov 6 2010, 09:20
|- - ResidualImages   In my email, I saw that you asked about the IP add...   Nov 6 2010, 12:40
|- - DetlevD   QUOTE (ResidualImages @ Nov 6 2010, 12:40...   Nov 6 2010, 14:45
|- - ResidualImages   I have no control over www.lyricsplugin.com, but y...   Nov 6 2010, 15:34
|- - DetlevD   QUOTE (ResidualImages @ Nov 6 2010, 15:34...   Nov 7 2010, 03:11
|- - ResidualImages   I just tried this on a Windows XP SP3 box, by typi...   Nov 7 2010, 03:47
|- - DetlevD   QUOTE (ResidualImages @ Nov 7 2010, 03:47...   Nov 7 2010, 07:55
|- - ResidualImages   QUOTE (DetlevD @ Nov 7 2010, 01:55) When ...   Nov 7 2010, 09:34
|- - DetlevD   I changed the test case a bit. Now using a ID3v2.3...   Nov 7 2010, 14:21
- - dano   Windows doesn't support ID3v2.4 that's why...   Nov 7 2010, 10:54
- - Mike_nl   Why do you need to read the Tags ? That is the thi...   Nov 7 2010, 12:33
|- - DetlevD   QUOTE (Mike_nl @ Nov 7 2010, 12:33) Why d...   Nov 7 2010, 14:27
- - ResidualImages   QUOTE Windows doesn't support ID3v2.4 that...   Nov 7 2010, 16:56
|- - DetlevD   QUOTE (ResidualImages @ Nov 7 2010, 16:56...   Nov 7 2010, 17:15
|- - ResidualImages   QUOTE (DetlevD @ Nov 7 2010, 11:15) Try t...   Nov 7 2010, 17:24
|- - DetlevD   QUOTE (ResidualImages @ Nov 7 2010, 17:24...   Nov 7 2010, 17:58
- - ResidualImages   So I just changed to ID3v2.4 lyrics under my XP, S...   Nov 7 2010, 17:18
- - dano   You also have ID3v1 tags, it will read these.   Nov 7 2010, 17:23
|- - ResidualImages   QUOTE (dano @ Nov 7 2010, 11:23) You also...   Nov 7 2010, 17:25
- - ResidualImages   Very large changes to create a good solution for u...   Nov 7 2010, 20:31
|- - DetlevD   QUOTE (ResidualImages @ Nov 7 2010, 20:31...   Nov 8 2010, 12:21
|- - ResidualImages   QUOTE (DetlevD @ Nov 8 2010, 06:21) Stay ...   Nov 8 2010, 13:59
|- - DetlevD   QUOTE (ResidualImages @ Nov 8 2010, 13:59...   Nov 8 2010, 15:45
- - lexs   Hi, I tried to install and run this beautiful too...   Feb 4 2011, 09:58
|- - ResidualImages   Well, apparently the people have changed their web...   Feb 4 2011, 10:03
||- - ResidualImages   They've changed the php and JS behind the scen...   Feb 8 2011, 06:54
|- - ResidualImages   QUOTE (lexs @ Feb 4 2011, 02:58) Hi, I t...   Nov 7 2011, 23:11
|- - ResidualImages   After looking it over LyricsWiki (http://lyrics.wi...   Nov 11 2011, 01:32
|- - Luctus   QUOTE (ResidualImages @ Nov 8 2011, 00:11...   Nov 27 2011, 12:35
|- - ResidualImages   QUOTE (Luctus @ Nov 27 2011, 05:35) darkl...   Nov 28 2011, 18:09
- - LyricsLover   Nice work! Thank you for this tool!! ...   Mar 3 2012, 14:44
|- - ResidualImages   QUOTE (LyricsLover @ Mar 3 2012, 07:44) N...   Mar 3 2012, 22:03
|- - tbum20   QUOTE (LyricsLover @ Mar 3 2012, 15:44) c...   Mar 12 2012, 02:04
|- - ohrenkino   ZITAT(tbum20 @ Mar 12 2012, 02:04) ... yo...   Mar 12 2012, 07:20
- - ResidualImages   Thanks, tbum20 and ohrenkino for chiming in. both...   Mar 14 2012, 00:04
|- - LyricsLover   ZITAT(ResidualImages @ Mar 14 2012, 00:04...   Mar 14 2012, 06:17
|- - ResidualImages   QUOTE (LyricsLover @ Mar 13 2012, 23:17) ...   Mar 15 2012, 00:43
|- - LyricsLover   A special version only for me? Wow! I really...   Mar 15 2012, 09:00
|- - ResidualImages   QUOTE (LyricsLover @ Mar 15 2012, 03:00) ...   Mar 15 2012, 13:18
- - soehest   I like this tool but it seems to be choking for me...   Mar 19 2012, 00:25
|- - ResidualImages   QUOTE (soehest @ Mar 18 2012, 18:25) I li...   Mar 19 2012, 00:34
- - soehest   Oh no new issue Getting this on some songs: Unf...   Mar 19 2012, 17:00
|- - ResidualImages   QUOTE (soehest @ Mar 19 2012, 11:00) Oh n...   Mar 19 2012, 17:02
|- - soehest   QUOTE (ResidualImages @ Mar 19 2012, 17:0...   Mar 19 2012, 17:19
|- - ResidualImages   alright, there's a small revision now. this ...   Mar 30 2012, 21:48
|- - soehest   QUOTE (ResidualImages @ Mar 30 2012, 22:4...   Apr 2 2012, 12:51
|- - ResidualImages   QUOTE (soehest @ Apr 2 2012, 06:51) Nice ...   Apr 3 2012, 13:22
- - bobjonst   Hey I dont know if this was mentioned before. I re...   Mar 31 2012, 09:18
|- - ResidualImages   QUOTE (bobjonst @ Mar 31 2012, 03:18) Hey...   Apr 3 2012, 13:19
- - tbum20   bobjonst makes a good point, Thanks a lot for tak...   Apr 2 2012, 18:27
|- - ResidualImages   QUOTE (tbum20 @ Apr 2 2012, 12:27) bobjon...   Apr 3 2012, 13:24
- - Usram   Very good job. Thank's a lot for all your effo...   Apr 12 2012, 12:39
|- - ResidualImages   QUOTE (Usram @ Apr 12 2012, 06:39) Very g...   Apr 12 2012, 13:07
|- - entdh   Hello this is my first post, this tool is exactly ...   Apr 12 2012, 17:33
|- - ResidualImages   QUOTE (entdh @ Apr 12 2012, 11:33) it see...   Apr 12 2012, 17:45
|- - entdh   QUOTE (ResidualImages @ Apr 12 2012, 17:4...   Apr 13 2012, 13:10
|- - ResidualImages   QUOTE (entdh @ Apr 13 2012, 07:10) hello ...   Apr 13 2012, 15:10
|- - entdh   QUOTE (ResidualImages @ Apr 13 2012, 15:1...   Apr 13 2012, 19:22
|- - entdh   Oh I seem to have another odd problem - I can...   Apr 13 2012, 19:44
||- - ResidualImages   QUOTE (entdh @ Apr 13 2012, 13:44) Oh I...   Apr 13 2012, 20:16
||- - entdh   QUOTE (ResidualImages @ Apr 13 2012, 20:1...   Apr 13 2012, 22:50
||- - entdh   oh and you wouldnt have a copy of that batch file ...   Apr 13 2012, 22:51
|||- - ResidualImages   QUOTE (entdh @ Apr 13 2012, 16:51) oh and...   Apr 13 2012, 23:18
||- - ResidualImages   QUOTE (entdh @ Apr 13 2012, 16:50) again ...   Apr 13 2012, 23:20
||- - entdh   QUOTE (ResidualImages @ Apr 13 2012, 23:2...   Apr 14 2012, 09:50
||- - entdh   I notice that if i run the program several times i...   Apr 14 2012, 12:25
|||- - entdh   QUOTE (entdh @ Apr 14 2012, 12:25) I noti...   Apr 20 2012, 09:22
||- - ResidualImages   QUOTE (entdh @ Apr 14 2012, 03:50) text f...   Apr 14 2012, 17:18
||- - entdh   Hi its me again I set up your great app on my mac...   Apr 18 2012, 11:07
|- - ResidualImages   QUOTE (entdh @ Apr 13 2012, 13:22) That s...   Apr 13 2012, 20:15
- - tbum20   QUOTE (ResidualImages @ Apr 14 2012, 18:1...   Apr 30 2012, 16:12
- - SHAHRAM   I do the readme guide step by step! but when i...   May 24 2012, 11:10
- - dano   Use a different directory for the lyricsData.txt f...   May 24 2012, 11:22
- - SHAHRAM   Thank you very much indeed, ive got another questi...   May 29 2012, 14:13
- - Psi   This is an amazing tool, thank you so much Matt. ...   Jun 20 2012, 09:45
|- - ResidualImages   QUOTE (Psi @ Jun 20 2012, 03:45) This is ...   Jun 29 2012, 19:39
|- - Psi   QUOTE (ResidualImages @ Jun 29 2012, 19:3...   Jul 29 2012, 13:58
|- - ResidualImages   QUOTE (Psi @ Jul 29 2012, 07:58) so it...   Jul 30 2012, 00:44
- - RealPetChicken   So i installed this great script, while searching ...   Jul 1 2012, 23:09
|- - ResidualImages   QUOTE (RealPetChicken @ Jul 1 2012, 17:09...   Jul 4 2012, 18:32
- - Usram   Hi, I have some troubles with some files. I got t...   Nov 6 2012, 10:39
|- - ResidualImages   QUOTE (Usram @ Nov 6 2012, 03:39) Hi, I ...   Dec 11 2013, 15:25
- - Zedicus Mann   Hello, I just discovered this plugin and I love i...   Oct 30 2013, 18:28
|- - ResidualImages   QUOTE (Zedicus Mann @ Oct 30 2013, 12:28)...   Dec 9 2013, 16:23
- - tappan   With MP3tag v2.58 and FindLyrics 1.0.0.16, LyricsW...   Dec 10 2013, 03:42
|- - ResidualImages   QUOTE (tappan @ Dec 9 2013, 20:42) With M...   Dec 11 2013, 15:00
- - tappan   I was doing Audioslave albums 'Audioslave...   Dec 12 2013, 14:35
|- - ResidualImages   QUOTE (tappan @ Dec 12 2013, 07:35) I was...   Dec 12 2013, 14:54
- - poster   If I change to the source of viewlyrics the openin...   Dec 13 2013, 19:44
- - ResidualImages   QUOTE (poster @ Dec 13 2013, 12:44) If I ...   Dec 16 2013, 15:23
- - xp_xyz   Just came across ResidualImages' magnificient ...   May 10 2014, 20:04
- - ResidualImages   QUOTE (xp_xyz @ May 10 2014, 13:04) Just ...   May 11 2014, 17:11
- - xp_xyz   QUOTE (ResidualImages @ May 11 2014, 18:1...   May 11 2014, 17:41
- - ResidualImages   QUOTE (xp_xyz @ May 11 2014, 10:41) Thank...   May 20 2014, 20:16
2 Pages V   1 2 >


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2014 - 14:51