Batch Art Finder 4.2 - Updated 03/07/2012

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

lostinthought
Posts: 44
Joined: Sun Oct 16, 2011 3:18 pm

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by lostinthought » Mon Jun 25, 2012 5:19 pm

Aff wrote:OK - I've just fixed Google search! :D

Here is the old piece of code at line 2104...

Code: Select all

          If InStr(src,"http://images.google.com/imgres?imgurl=") = 1 Then
            src = Replace(src,"http://images.google.com/imgres?imgurl=","")
            If InStr(src,"&imgrefurl=") > 1 Then
              src = Left(src,InStr(src,"&imgrefurl=")-1)
            End If
          End If      
...that has to be replaced by:

Code: Select all

          If InStr(src,"http://images.google.com/imgres?") = 1 Then
             Dim RegEx : Set RegEx = New RegExp
             RegEx.IgnoreCase = True
             'Delete left from image file url
             RegEx.Pattern = "http://images.google.com/imgres\?.+&imgurl="
             src = RegEx.Replace(src, "")
             'Delete right from image file url
             RegEx.Pattern = "&.+"
             src = RegEx.Replace(src, "")
          End If      
This is a complete solution regarding Google search for the original script ("Try next image" and "Previous image" work perfectly without any further modification).
To apply the fix, edit BatchArtFinder.vbs in Notepad.
Hey there AFF...as you recomended, I edited BatchArtFinder.vbs, replacing the old code with your new code, saved the file and restarted MM4. I ran the edited script, but to no avail I am getting the same results as prior to the edit...it searches and then returns "[No results]". I am on a WIN7 64bit PC using MM4.05 Gold. Did I miss a step?

Guest

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Guest » Tue Jun 26, 2012 3:51 pm

I have the same exact problem I edited the script as shown but still returns no results.

Also using Windows 7 64 and MM 4.05.

Aff
Posts: 306
Joined: Sun Oct 05, 2008 4:46 pm
Location: Switzerland

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Aff » Tue Jun 26, 2012 4:37 pm

lostinthought wrote:Hey there AFF...as you recomended, I edited BatchArtFinder.vbs, replacing the old code with your new code, saved the file and restarted MM4. I ran the edited script, but to no avail I am getting the same results as prior to the edit...it searches and then returns "[No results]". I am on a WIN7 64bit PC using MM4.05 Gold. Did I miss a step?
Was it really the right file? Did you create a copy at the same place? What happens if you remove (cut and paste to another folder) the edited file and start MM then?
I use Win 7 64 and MM 4.05 as well, portable install.

Guest

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Guest » Tue Jun 26, 2012 7:54 pm

Tried doing all that. Google still produces no results.

lostinthought
Posts: 44
Joined: Sun Oct 16, 2011 3:18 pm

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by lostinthought » Tue Jun 26, 2012 10:26 pm

Aff wrote:
lostinthought wrote:Hey there AFF...as you recomended, I edited BatchArtFinder.vbs, replacing the old code with your new code, saved the file and restarted MM4. I ran the edited script, but to no avail I am getting the same results as prior to the edit...it searches and then returns "[No results]". I am on a WIN7 64bit PC using MM4.05 Gold. Did I miss a step?
Was it really the right file? Did you create a copy at the same place? What happens if you remove (cut and paste to another folder) the edited file and start MM then?
I use Win 7 64 and MM 4.05 as well, portable install.

Yes..I made all changes to the correct file and in the correct place (did it 3 times) and still no search results!

Aff
Posts: 306
Joined: Sun Oct 05, 2008 4:46 pm
Location: Switzerland

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Aff » Wed Jun 27, 2012 4:42 pm

1.
Please use the code below instead of my previous one. I've added some debug information for the log file:

Code: Select all

          If InStr(src,"http://images.google.com/imgres?") = 1 Then
             If Debug Then out("Src (image full URL): '"&src&"'")
             Dim RegEx : Set RegEx = New RegExp
             RegEx.IgnoreCase = True
             'Delete left from image file URL
             RegEx.Pattern = "http://images.google.com/imgres\?.+&imgurl="
             src = RegEx.Replace(src, "")
             'Delete right from image file URL
             RegEx.Pattern = "&.+"
             src = RegEx.Replace(src, "")
             If Debug Then out("Src (image file URL): '"&src&"'")
          Else
             If Debug Then out("Src (skipped URL): '"&src&"'")
          End If      
2.
Go to "Options", "BatchArtFinder Settings", activate "Create debug logfile".
The logfile is created in your temporary folder. Usually this is "c:\Users\[Username]\AppData\Local\Temp\BatchArtFinder.log".
3.
Search a cover for a single song.
4.
Paste your log here, or send me a PM if you prefer not to share it.

borisag
Posts: 29
Joined: Wed Jul 13, 2011 7:38 pm

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by borisag » Wed Jun 27, 2012 6:17 pm

Aff wrote:1.
Please use the code below instead of my previous one. I've added some debug information for the log file:

Code: Select all

          If InStr(src,"http://images.google.com/imgres?") = 1 Then
             If Debug Then out("Src (image full URL): '"&src&"'")
             Dim RegEx : Set RegEx = New RegExp
             RegEx.IgnoreCase = True
             'Delete left from image file URL
             RegEx.Pattern = "http://images.google.com/imgres\?.+&imgurl="
             src = RegEx.Replace(src, "")
             'Delete right from image file URL
             RegEx.Pattern = "&.+"
             src = RegEx.Replace(src, "")
             If Debug Then out("Src (image file URL): '"&src&"'")
          Else
             If Debug Then out("Src (skipped URL): '"&src&"'")
          End If      
2.
Go to "Options", "BatchArtFinder Settings", activate "Create debug logfile".
The logfile is created in your temporary folder. Usually this is "c:\Users\[Username]\AppData\Local\Temp\BatchArtFinder.log".
3.
Search a cover for a single song.
4.
Paste your log here, or send me a PM if you prefer not to share it.
Hi i have the same problem this is my log

Code: Select all

06:40:34 p.m. Batch Art Finder started...
06:40:34 p.m. Singles=0
06:40:34 p.m. Maximum=0
06:40:34 p.m. Extra=
06:40:34 p.m. PanelType=1
06:40:34 p.m. CheckAll=0
06:40:34 p.m. Source=0
06:40:34 p.m. ConfMode=0
06:40:34 p.m. IncludeDone=True
06:40:34 p.m. Persist=0
06:40:34 p.m. Titles=0
06:40:34 p.m. FilterName=- No Filter -
06:40:34 p.m. Exists=False
06:40:34 p.m. (Selected albums)
06:40:34 p.m. AlbumID=693
06:40:34 p.m. #SELECT Avg(Year/10000) As AvgYear, Sum(SongLength) As TotLength FROM Songs WHERE IDAlbum=693
06:40:34 p.m. Total=1
06:40:34 p.m. @http://images.google.com/images?q=Adele+21&svnum=100&hl=en&lr=lang_en&newwindow=0&safe=off&sa=G&imgsz=medium&ie=UTF-8&oe=UTF-8
06:40:47 p.m. Image 'res://ieframe.dll/info_48.png' is wrong type: PNG (album:1)
06:40:47 p.m. Image 'res://ieframe.dll/bullet.png' is wrong type: PNG (album:1)
06:40:47 p.m. Image 'res://ieframe.dll/bullet.png' is wrong type: PNG (album:1)
06:40:47 p.m. Image 'res://ieframe.dll/bullet.png' is wrong type: PNG (album:1)
06:40:47 p.m. Image 'res://ieframe.dll/down.png' is wrong type: PNG (album:1)
06:40:47 p.m. Images=0/5

Aff
Posts: 306
Joined: Sun Oct 05, 2008 4:46 pm
Location: Switzerland

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Aff » Thu Jun 28, 2012 6:06 am

As my additional debug output is missing in your log, I strongly assume that MM doesn't run the edited script but the original one.

There must be only one version of the script!
  1. Do NOT make a copy with the extension .vbs (file type "VBScript Script File") in the Auto folder.
    The filename doesn't matter, scripts are labeled internally.
  2. Especially with MM4, there are several possible folders for auto scripts.
    E.g.:
    • C:\Documents and Settings\[Username]\Application Data\MediaMonkey\Scripts\Auto
    • c:\Users\[Username]\AppData\Roaming\MediaMonkey\Scripts\Auto
    • c:\Program Files (x86)\MediaMonkey\Scripts\Auto
      If you see a button "Compatibility Files" in Windows Explorer it may be stored in:
      c:\Users\[Username]\AppData\Local\VirtualStore\Program Files (x86)\MediaMonkey\Scripts\Auto
    Check all those locations. You may run a file search as well.
  3. Restart MM
Last edited by Aff on Sat Jun 30, 2012 5:47 pm, edited 1 time in total.

borisag
Posts: 29
Joined: Wed Jul 13, 2011 7:38 pm

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by borisag » Thu Jun 28, 2012 10:16 am

Aff wrote:As my additional debug output is missing in your log, I strongly assume that MM doesn't run the edited script but the original one.

There must be only one version of the script!
  1. Do NOT make a copy with the extension .vbs (file type "VBScript Script File") in the Auto folder.
    The filename doesn't matter, scripts are labeled internally.
  2. Especially with MM4, there are several possible folders for auto scripts.
    E.g.:
    • C:\Documents and Settings\[Username]\Application Data\MediaMonkey\Scripts\Auto
    • c:\Program Files (x86)\MediaMonkey\Scripts\Auto
      If you see a button "Compatibility Files" in Windows Explorer it may be stored in:
      c:\Users\[Username]\AppData\Local\VirtualStore\Program Files (x86)\MediaMonkey\Scripts\Auto
    Check all those locations. You may run a file search as well.
  3. Restart MM
I did all your sugestions and this it's keep returning No results. This is my new log

Code: Select all

11:05:46 a.m. Batch Art Finder started...
11:05:46 a.m. Singles=0
11:05:46 a.m. Maximum=0
11:05:46 a.m. Extra=
11:05:46 a.m. PanelType=1
11:05:46 a.m. CheckAll=0
11:05:46 a.m. Source=0
11:05:46 a.m. ConfMode=0
11:05:46 a.m. IncludeDone=True
11:05:46 a.m. Persist=0
11:05:46 a.m. Titles=0
11:05:46 a.m. FilterName=- No Filter -
11:05:46 a.m. Exists=False
11:05:46 a.m. (Selected albums)
11:05:46 a.m. AlbumID=302
11:05:46 a.m. #SELECT Avg(Year/10000) As AvgYear, Sum(SongLength) As TotLength FROM Songs WHERE IDAlbum=302
11:05:46 a.m. Total=1
11:05:46 a.m. @http://images.google.com/images?q=Arctic+Monkeys+I+Bet+You+Look+Good+on+the+Dancefloor&svnum=100&hl=en&lr=lang_en&newwindow=0&safe=off&sa=G&imgsz=medium&ie=UTF-8&oe=UTF-8
11:05:59 a.m. Src (skipped URL): 'http://images.google.com/images/nav_logo_hp2.png'
11:05:59 a.m. Image 'http://images.google.com/images/nav_logo_hp2.png' is wrong type: PNG (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t1.gstatic.com/images?q=tbn:ANd9GcR3Maw-0oC-5wguo6fKNwKDx8Vl4H5o7u4jGsf7j5ySYxB3MypOPJWOnI0'
11:05:59 a.m. Image 'http://t1.gstatic.com/images?q=tbn:ANd9GcR3Maw-0oC-5wguo6fKNwKDx8Vl4H5o7u4jGsf7j5ySYxB3MypOPJWOnI0' is wrong type: COM/IMAGES?Q=TBN:AND9GCR3MAW-0OC-5WGUO6FKNWKDX8VL4H5O7U4JGSF7J5YSYXB3MYPOPJWONI0 (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t2.gstatic.com/images?q=tbn:ANd9GcQZ5Fcz1nEL3iEFMUuI5ncxrOD-F0CPDl6CsskNYyweBw-ud5wAIdWW6Q'
11:05:59 a.m. Image 'http://t2.gstatic.com/images?q=tbn:ANd9GcQZ5Fcz1nEL3iEFMUuI5ncxrOD-F0CPDl6CsskNYyweBw-ud5wAIdWW6Q' is wrong type: COM/IMAGES?Q=TBN:AND9GCQZ5FCZ1NEL3IEFMUUI5NCXROD-F0CPDL6CSSKNYYWEBW-UD5WAIDWW6Q (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t2.gstatic.com/images?q=tbn:ANd9GcT5Ai_qKoW9HYl7Rjkfb8C5xPsX31_vUwbuYWiC5MM8yM0NTzVAD2m_Qo0'
11:05:59 a.m. Image 'http://t2.gstatic.com/images?q=tbn:ANd9GcT5Ai_qKoW9HYl7Rjkfb8C5xPsX31_vUwbuYWiC5MM8yM0NTzVAD2m_Qo0' is wrong type: COM/IMAGES?Q=TBN:AND9GCT5AI_QKOW9HYL7RJKFB8C5XPSX31_VUWBUYWIC5MM8YM0NTZVAD2M_QO0 (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t3.gstatic.com/images?q=tbn:ANd9GcR5ks_LSIOXnMI3iv8eE1alhSRBybYEiz0hKvkvRWftUv6K2N2-uGcqAhM'
11:05:59 a.m. Image 'http://t3.gstatic.com/images?q=tbn:ANd9GcR5ks_LSIOXnMI3iv8eE1alhSRBybYEiz0hKvkvRWftUv6K2N2-uGcqAhM' is wrong type: COM/IMAGES?Q=TBN:AND9GCR5KS_LSIOXNMI3IV8EE1ALHSRBYBYEIZ0HKVKVRWFTUV6K2N2-UGCQAHM (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t3.gstatic.com/images?q=tbn:ANd9GcQdbqtNCKBMzycdd5Et82N58GWaTejqDF7m7W0VV0DhNIAyKq_7gFuH4Q'
11:05:59 a.m. Image 'http://t3.gstatic.com/images?q=tbn:ANd9GcQdbqtNCKBMzycdd5Et82N58GWaTejqDF7m7W0VV0DhNIAyKq_7gFuH4Q' is wrong type: COM/IMAGES?Q=TBN:AND9GCQDBQTNCKBMZYCDD5ET82N58GWATEJQDF7M7W0VV0DHNIAYKQ_7GFUH4Q (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t0.gstatic.com/images?q=tbn:ANd9GcSRZqFuPGJZ6zCohJrcpludC4GUW1kTTfh6SA4RV8wSUwO6gCYiH9rEIZM'
11:05:59 a.m. Image 'http://t0.gstatic.com/images?q=tbn:ANd9GcSRZqFuPGJZ6zCohJrcpludC4GUW1kTTfh6SA4RV8wSUwO6gCYiH9rEIZM' is wrong type: COM/IMAGES?Q=TBN:AND9GCSRZQFUPGJZ6ZCOHJRCPLUDC4GUW1KTTFH6SA4RV8WSUWO6GCYIH9REIZM (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t0.gstatic.com/images?q=tbn:ANd9GcSm5nhefZOKwi-0zKX7qbhiV0CI-dVk6ahpwivWVsZAT24DearPXwYy5g'
11:05:59 a.m. Image 'http://t0.gstatic.com/images?q=tbn:ANd9GcSm5nhefZOKwi-0zKX7qbhiV0CI-dVk6ahpwivWVsZAT24DearPXwYy5g' is wrong type: COM/IMAGES?Q=TBN:AND9GCSM5NHEFZOKWI-0ZKX7QBHIV0CI-DVK6AHPWIVWVSZAT24DEARPXWYY5G (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t2.gstatic.com/images?q=tbn:ANd9GcRHAhNZ_VqcK5CBQPSBQTt1y5uf_lToAW9vzD0m__E9Z9ihneJWiwI4ZMs'
11:05:59 a.m. Image 'http://t2.gstatic.com/images?q=tbn:ANd9GcRHAhNZ_VqcK5CBQPSBQTt1y5uf_lToAW9vzD0m__E9Z9ihneJWiwI4ZMs' is wrong type: COM/IMAGES?Q=TBN:AND9GCRHAHNZ_VQCK5CBQPSBQTT1Y5UF_LTOAW9VZD0M__E9Z9IHNEJWIWI4ZMS (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t1.gstatic.com/images?q=tbn:ANd9GcQYb2wrK3ipFf3iEQidCK14Wkqb0xWkALy8vPLiV5MHWZdIVV7dxHbUkw'
11:05:59 a.m. Image 'http://t1.gstatic.com/images?q=tbn:ANd9GcQYb2wrK3ipFf3iEQidCK14Wkqb0xWkALy8vPLiV5MHWZdIVV7dxHbUkw' is wrong type: COM/IMAGES?Q=TBN:AND9GCQYB2WRK3IPFF3IEQIDCK14WKQB0XWKALY8VPLIV5MHWZDIVV7DXHBUKW (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t1.gstatic.com/images?q=tbn:ANd9GcQ8-BWAvb_kT2qfz98inqUI6deCZcvbHkkKtcONU0Y4eTDX35LgLsba2I8'
11:05:59 a.m. Image 'http://t1.gstatic.com/images?q=tbn:ANd9GcQ8-BWAvb_kT2qfz98inqUI6deCZcvbHkkKtcONU0Y4eTDX35LgLsba2I8' is wrong type: COM/IMAGES?Q=TBN:AND9GCQ8-BWAVB_KT2QFZ98INQUI6DECZCVBHKKKTCONU0Y4ETDX35LGLSBA2I8 (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t0.gstatic.com/images?q=tbn:ANd9GcRnem1c-hFG4_dMl27aJu-F96Tpj605wYqqz14xmLRb7Yvj25yAMIy-NyA'
11:05:59 a.m. Image 'http://t0.gstatic.com/images?q=tbn:ANd9GcRnem1c-hFG4_dMl27aJu-F96Tpj605wYqqz14xmLRb7Yvj25yAMIy-NyA' is wrong type: COM/IMAGES?Q=TBN:AND9GCRNEM1C-HFG4_DML27AJU-F96TPJ605WYQQZ14XMLRB7YVJ25YAMIY-NYA (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t2.gstatic.com/images?q=tbn:ANd9GcQza5Z57NQFRQlFcgVskhXH6awKqCyvyT5njljTzue3QLCiHJajQ1YQ0sw'
11:05:59 a.m. Image 'http://t2.gstatic.com/images?q=tbn:ANd9GcQza5Z57NQFRQlFcgVskhXH6awKqCyvyT5njljTzue3QLCiHJajQ1YQ0sw' is wrong type: COM/IMAGES?Q=TBN:AND9GCQZA5Z57NQFRQLFCGVSKHXH6AWKQCYVYT5NJLJTZUE3QLCIHJAJQ1YQ0SW (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t1.gstatic.com/images?q=tbn:ANd9GcTIBzYem05MLAhWBVZyIJlrHqH-GCPbM4FN676Wt1TpI5PdzXjJDGuSLoQ'
11:05:59 a.m. Image 'http://t1.gstatic.com/images?q=tbn:ANd9GcTIBzYem05MLAhWBVZyIJlrHqH-GCPbM4FN676Wt1TpI5PdzXjJDGuSLoQ' is wrong type: COM/IMAGES?Q=TBN:AND9GCTIBZYEM05MLAHWBVZYIJLRHQH-GCPBM4FN676WT1TPI5PDZXJJDGUSLOQ (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t3.gstatic.com/images?q=tbn:ANd9GcRtjuu1jjnBvsqeI-R3l2cQ5uGPlXd3qxn5GTTXe7WuO3HmtYT6755ANj0'
11:05:59 a.m. Image 'http://t3.gstatic.com/images?q=tbn:ANd9GcRtjuu1jjnBvsqeI-R3l2cQ5uGPlXd3qxn5GTTXe7WuO3HmtYT6755ANj0' is wrong type: COM/IMAGES?Q=TBN:AND9GCRTJUU1JJNBVSQEI-R3L2CQ5UGPLXD3QXN5GTTXE7WUO3HMTYT6755ANJ0 (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t3.gstatic.com/images?q=tbn:ANd9GcSV1yCsKbHt8P4QUFSElFbhgpx_MojpPQwCK79Cv9Pac4TiduOE-fkSXw'
11:05:59 a.m. Image 'http://t3.gstatic.com/images?q=tbn:ANd9GcSV1yCsKbHt8P4QUFSElFbhgpx_MojpPQwCK79Cv9Pac4TiduOE-fkSXw' is wrong type: COM/IMAGES?Q=TBN:AND9GCSV1YCSKBHT8P4QUFSELFBHGPX_MOJPPQWCK79CV9PAC4TIDUOE-FKSXW (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t0.gstatic.com/images?q=tbn:ANd9GcReMtyllDw89M49l7zRGpYiHDF05yHtUXK-HbhTubpNNH0vK0i93tPkEg'
11:05:59 a.m. Image 'http://t0.gstatic.com/images?q=tbn:ANd9GcReMtyllDw89M49l7zRGpYiHDF05yHtUXK-HbhTubpNNH0vK0i93tPkEg' is wrong type: COM/IMAGES?Q=TBN:AND9GCREMTYLLDW89M49L7ZRGPYIHDF05YHTUXK-HBHTUBPNNH0VK0I93TPKEG (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t1.gstatic.com/images?q=tbn:ANd9GcQZ7yviO8YOnreYHz5My8PAtWWUrFGuk4oNqkIRMYFJY1zgrNvkhGXr2f8'
11:05:59 a.m. Image 'http://t1.gstatic.com/images?q=tbn:ANd9GcQZ7yviO8YOnreYHz5My8PAtWWUrFGuk4oNqkIRMYFJY1zgrNvkhGXr2f8' is wrong type: COM/IMAGES?Q=TBN:AND9GCQZ7YVIO8YONREYHZ5MY8PATWWURFGUK4ONQKIRMYFJY1ZGRNVKHGXR2F8 (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t0.gstatic.com/images?q=tbn:ANd9GcRsghV1Dkr917eGxaGVThk9jq7H1Cmudre5AdhHE7BP39xsMM77EgnwSQ'
11:05:59 a.m. Image 'http://t0.gstatic.com/images?q=tbn:ANd9GcRsghV1Dkr917eGxaGVThk9jq7H1Cmudre5AdhHE7BP39xsMM77EgnwSQ' is wrong type: COM/IMAGES?Q=TBN:AND9GCRSGHV1DKR917EGXAGVTHK9JQ7H1CMUDRE5ADHHE7BP39XSMM77EGNWSQ (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t1.gstatic.com/images?q=tbn:ANd9GcQ9zOEiWeFldzaeCBJ9lECEWeN_kcXsdn2o5o_c5AE_u4Pl594xpvawfg'
11:05:59 a.m. Image 'http://t1.gstatic.com/images?q=tbn:ANd9GcQ9zOEiWeFldzaeCBJ9lECEWeN_kcXsdn2o5o_c5AE_u4Pl594xpvawfg' is wrong type: COM/IMAGES?Q=TBN:AND9GCQ9ZOEIWEFLDZAECBJ9LECEWEN_KCXSDN2O5O_C5AE_U4PL594XPVAWFG (album:1)
11:05:59 a.m. Src (skipped URL): 'http://t3.gstatic.com/images?q=tbn:ANd9GcTK0k8FF_7pTt50mnT-6v16V1SpEUH2QJ8M5e-6hNDYDo5G4MEsMoFcTw'
11:05:59 a.m. Image 'http://t3.gstatic.com/images?q=tbn:ANd9GcTK0k8FF_7pTt50mnT-6v16V1SpEUH2QJ8M5e-6hNDYDo5G4MEsMoFcTw' is wrong type: COM/IMAGES?Q=TBN:AND9GCTK0K8FF_7PTT50MNT-6V16V1SPEUH2QJ8M5E-6HNDYDO5G4MESMOFCTW (album:1)
11:05:59 a.m. Images=0/21

lostinthought
Posts: 44
Joined: Sun Oct 16, 2011 3:18 pm

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by lostinthought » Thu Jun 28, 2012 11:03 am

Aff wrote:As my additional debug output is missing in your log, I strongly assume that MM doesn't run the edited script but the original one.

There must be only one version of the script!
  1. Do NOT make a copy with the extension .vbs (file type "VBScript Script File") in the Auto folder.
    The filename doesn't matter, scripts are labeled internally.
  2. Especially with MM4, there are several possible folders for auto scripts.
    E.g.:
    • C:\Documents and Settings\[Username]\Application Data\MediaMonkey\Scripts\Auto
    • c:\Program Files (x86)\MediaMonkey\Scripts\Auto
      If you see a button "Compatibility Files" in Windows Explorer it may be stored in:
      c:\Users\[Username]\AppData\Local\VirtualStore\Program Files (x86)\MediaMonkey\Scripts\Auto
    Check all those locations. You may run a file search as well.
  3. Restart MM
Hey AFF - I am also using a portable install so I know exactly where the Auto folder is. The script is currently not working for the google search. Here is the generated log:

Code: Select all

11:17:23 AM Batch Art Finder started...
11:17:23 AM Singles=0
11:17:23 AM Maximum=0
11:17:23 AM Extra=
11:17:23 AM PanelType=1
11:17:23 AM CheckAll=0
11:17:23 AM Source=0
11:17:23 AM ConfMode=0
11:17:23 AM IncludeDone=False
11:17:23 AM Persist=0
11:17:23 AM Titles=0
11:17:23 AM FilterName=- No Filter -
11:17:23 AM Exists=False
11:17:23 AM (Selected albums)
11:17:23 AM AlbumID=2862
11:17:23 AM #SELECT Avg(Year/10000) As AvgYear, Sum(SongLength) As TotLength FROM Songs WHERE IDAlbum=2862
11:17:23 AM Total=1
11:17:23 AM @http://images.google.com/images?q=James%2C+Etta+At+Last&svnum=100&hl=en&lr=lang_en&newwindow=0&safe=off&sa=G&imgsz=xxlarge&ie=UTF-8&oe=UTF-8
11:17:25 AM Src (skipped URL): '/images/nav_logo107.png'
11:17:25 AM Image '/images/nav_logo107.png' is wrong type: PNG (album:1)
11:17:25 AM Src (skipped URL): '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=wsfB3ltDB2BeOM:&imgrefurl=http://hypetrak.com/2012/01/singing-legend-etta-james-dies-at-73/&docid=a9mKnaHHBYZEBM&imgurl=http://5166-hypetrak.voxcdn.com/images/2012/01/etta_james-at_last.jpg&w=953&h=953&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1'
11:17:25 AM Image '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=wsfB3ltDB2BeOM:&imgrefurl=http://hypetrak.com/2012/01/singing-legend-etta-james-dies-at-73/&docid=a9mKnaHHBYZEBM&imgurl=http://5166-hypetrak.voxcdn.com/images/2012/01/etta_james-at_last.jpg&w=953&h=953&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1' is wrong type: JPG&W=953&H=953&EI=F3XST7NRCANM6GH-2UDOBQ&ZOOM=1 (album:1)
11:17:25 AM Src (skipped URL): '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=-1BFLa-untSOBM:&imgrefurl=http://www.ladyslipper.org/rel/v2_viewupc.php%3Fstorenr%3D53%26upc%3D00881120172&docid=tjK67VQh-RSg6M&imgurl=http://images1.buymusichere.net/images/universal/172/00881120172.jpg&w=900&h=896&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1'
11:17:25 AM Image '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=-1BFLa-untSOBM:&imgrefurl=http://www.ladyslipper.org/rel/v2_viewupc.php%3Fstorenr%3D53%26upc%3D00881120172&docid=tjK67VQh-RSg6M&imgurl=http://images1.buymusichere.net/images/universal/172/00881120172.jpg&w=900&h=896&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1' is wrong type: JPG&W=900&H=896&EI=F3XST7NRCANM6GH-2UDOBQ&ZOOM=1 (album:1)
11:17:25 AM Src (skipped URL): '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=9Hw4_vhnmpGvdM:&imgrefurl=http://www.thevoguevibes.com/2012/01/etta-james-best-songs/&docid=BgbkZ-E42STbfM&imgurl=http://www.thevoguevibes.com/wp-content/uploads/2012/01/Etta-James-at-Last-1024x1024.jpg&w=1024&h=1024&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1'
11:17:25 AM Image '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=9Hw4_vhnmpGvdM:&imgrefurl=http://www.thevoguevibes.com/2012/01/etta-james-best-songs/&docid=BgbkZ-E42STbfM&imgurl=http://www.thevoguevibes.com/wp-content/uploads/2012/01/Etta-James-at-Last-1024x1024.jpg&w=1024&h=1024&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1' is wrong type: JPG&W=1024&H=1024&EI=F3XST7NRCANM6GH-2UDOBQ&ZOOM=1 (album:1)
11:17:25 AM Src (skipped URL): '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=kNkxjZ5CdU5LWM:&imgrefurl=http://www.ibtimes.com/articles/285311/20120120/etta-james-sarah-burke-dead-6-icons.htm&docid=ScCEgo0FwiGDZM&imgurl=http://img.ibtimes.com/www/data/images/full/2012/01/20/219785-etta-james.jpg&w=950&h=1458&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1'
11:17:25 AM Image '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=kNkxjZ5CdU5LWM:&imgrefurl=http://www.ibtimes.com/articles/285311/20120120/etta-james-sarah-burke-dead-6-icons.htm&docid=ScCEgo0FwiGDZM&imgurl=http://img.ibtimes.com/www/data/images/full/2012/01/20/219785-etta-james.jpg&w=950&h=1458&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1' is wrong type: JPG&W=950&H=1458&EI=F3XST7NRCANM6GH-2UDOBQ&ZOOM=1 (album:1)
11:17:25 AM Images=0/99

Aff
Posts: 306
Joined: Sun Oct 05, 2008 4:46 pm
Location: Switzerland

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Aff » Thu Jun 28, 2012 11:21 am

@borisag:

Your result looks as if JavaScript was disabled.
I've checked the Google page source. The "nav_logo_hp2.png" seems to be only present without JavaScript. In that case BatchArtFinder obviously doesn't find the source URLs at all.

So please press Internet Explorer, Tools, Internet Options, Security, Internet, Default level.
It should be "Medium-high" afterwards, where JavaScript is enabled by default.

Aff
Posts: 306
Joined: Sun Oct 05, 2008 4:46 pm
Location: Switzerland

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Aff » Thu Jun 28, 2012 12:51 pm

lostinthought wrote:Hey AFF - I am also using a portable install so I know exactly where the Auto folder is. The script is currently not working for the google search. Here is the generated log:

Code: Select all

(...)
11:17:25 AM Src (skipped URL): '/imgres?q=James,+Etta+At+Last&hl=en&lr=lang_en&safe=off&sa=G&imgsz=xxlarge&biw=17&bih=10&tbs=lr:lang_1en&tbm=isch&tbnid=wsfB3ltDB2BeOM:&imgrefurl=http://hypetrak.com/2012/01/singing-legend-etta-james-dies-at-73/&docid=a9mKnaHHBYZEBM&imgurl=http://5166-hypetrak.voxcdn.com/images/2012/01/etta_james-at_last.jpg&w=953&h=953&ei=f3XsT7nrCanm6gH-2uDoBQ&zoom=1'
(...)
BatchArtFinder expects that the URL starts with "http://images.google.com/imgres?", you've only got "/imgres?".
I've updated the code to handle that case.

Please replace my previous code by:

Code: Select all

          Dim RegEx : Set RegEx = New RegExp
          RegEx.IgnoreCase = True
          RegEx.Pattern = "((^http://images.google.com/imgres\?)|(^/imgres\?))(.+&imgurl=)"
          If RegEx.Test(src) Then
             If Debug Then out("Src (image full URL): '"&src&"'")
             'Delete left from image file URL
             src = RegEx.Replace(src, "")
             'Delete right from image file URL
             RegEx.Pattern = "&.+"
             src = RegEx.Replace(src, "")
             If Debug Then out("Src (image file URL): '"&src&"'")
          Else
             If Debug Then out("Src (skipped URL): '"&src&"'")
          End If      
Including the line above and below my code it should look like this:

Code: Select all

        Case 0
          Dim RegEx : Set RegEx = New RegExp
          RegEx.IgnoreCase = True
          RegEx.Pattern = "((^http://images.google.com/imgres\?)|(^/imgres\?))(.+&imgurl=)"
          If RegEx.Test(src) Then
             If Debug Then out("Src (image full URL): '"&src&"'")
             'Delete left from image file URL
             src = RegEx.Replace(src, "")
             'Delete right from image file URL
             RegEx.Pattern = "&.+"
             src = RegEx.Replace(src, "")
             If Debug Then out("Src (image file URL): '"&src&"'")
          Else
             If Debug Then out("Src (skipped URL): '"&src&"'")
          End If      
        Case 1

Guest

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Guest » Thu Jun 28, 2012 8:53 pm

That worked! Thanks a lot!!

Guest

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Guest » Thu Jun 28, 2012 9:10 pm

Spoke too soon. It now finds the images on google, however when i click to save, I get the following error "The MSInet component could not be found, please install before running this script"

Aff
Posts: 306
Joined: Sun Oct 05, 2008 4:46 pm
Location: Switzerland

Re: Batch Art Finder 4.1 - Updated 31/01/2011

Post by Aff » Fri Jun 29, 2012 5:13 am

ripndip wrote:Anyone else get this error "the MSInet component could not be found, please install before running script"?
Guest wrote:(...) when i click to save, I get the following error "The MSInet component could not be found, please install before running this script"
This is a common problem, there are numerous solutions posted already in this thread.
  1. Check if the file msinet.ocx is present in the program folder for auto scripts, usually "c:\Program Files (x86)\MediaMonkey\Scripts\Auto\msinet.ocx".
  2. If yes, click the right mouse button on MM, click "Run as administrator"
  3. Start BatchArtFinder
  4. Search for art
  5. Save it to the track
  6. The script will automatically write the license key to the registry and register the OCX
  7. Close MM. The next time you can start MM as usual.
If the msinet.ocx isn't present, you may manually copy it from the MMIP or follow one of the other existing solutions.

Post Reply