IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Amazon Web Sources, split from 22608
Dan Dogma
post Jun 23 2017, 23:55
Post #1


Member


Group: Full Members
Posts: 8
Joined: 23-June 17
Member No.: 23559
Mp3tag Version: 2.83i



QUOTE (Florian @ Jun 23 2017, 16:00) *
It was working also with Amazon.com for quite some time even after they've closed the account. It's just that they've probably implemented new validation which now breaks support for Amazon.com. A few weeks ago the same happened with Amazon.co.jp.

Given the fact that they've also terminated my Amazon.de associate account (.de and .com were two different accounts), I don't trust in this situation any longer and don't want to support it officially.

If you like to keep using the Amazon.de web source, you can copy it from a previous installation.

Kind regards
– Florian


Amazon.de, amazon.co.uk and Amazon.fr are working for me. I just changed all the .co.uk in the script below to .fr and .de and saved it under different names.

I hope it will keep on working for quite a while. cool.gif

QUOTE
# Mp3tag parsing for Amazon Web Service (v2.36 and higher)
#
# Web source created and maintained by dano
# Last modified 2011-01-26
#
# minor additions by Florian and Dave Reid
#
# Save it in your Mp3tag data directory, i.e.
# C:\Documents and Settings\*username*\Application Data\Mp3tag\data\sources
#
#
#
[Name]=Amazon.co.uk
[BasedOn]=http://webservices.amazon.co.uk
[IndexUrl]=http://webservices.amazon.co.uk/onca/xml?Service=AWSECommerceService&AssociateTag=none&Operation=ItemSearch&SearchIndex=Music&Keywords=%s&ItemPage=1&ResponseGroup=ItemAttributes,Small,Tracks,Images
[AlbumUrl]=http://webservices.amazon.co.uk/onca/xml?Service=AWSECommerceService&AssociateTag=none&Operation=ItemLookup&ItemId
[WordSeperator]=%20
[IndexFormat]=%_url%|%_preview%|%Artist%|%Publisher%|%Tracks%|%Released%|%Album%
[SearchBy]=%album%

[ParserScriptIndex]=...
# ###################################################################
# This script parses the webpage for all releases
# by this albumname.
#
# The output format is defined by IndexFormat above, which
# is used by the selection dialog
# ###################################################################
regexpreplace "<Binding>[^<]+</Binding>" ""
do
findinline "<Item>"
say "="
findinline "<ASIN>"
sayuntil "</ASIN>"
say "&ItemPage=1&ResponseGroup=ItemAttributes,Small,Tracks,Images"
say "|"

# Preview
findinline "<DetailPageURL>"
sayuntil "</DetailPageURL>"
say "|"

# Artist
findinline "<ItemAttributes>"
if "<Artist>"
findinline "<Artist>"
sayuntil "</Artist>"
else
if "<Creator"
findinline "<Creator"
findinline ">"
sayuntil "</Creator>"
else
if "<Author>"
findinline "<Author>"
sayuntil "</Author>"
endif
endif
endif
say "|"

# Publisher
sayregexp "(?<=<Label>)[^<]+(?=</Label>)" ", " "</ItemAttributes>"
say "|"

# Total tracks
sayregexp "(?<=Track Number=\")\d+(?=\">[^<]+</Track></Disc>)" ", " "</Item>"
say "|"

# Released
sayregexp "(?<=<ReleaseDate>)[-0-9]{4,10}(?=</ReleaseDate>)" ", " "</ItemAttributes>"
say "|"

#Album
findinline "<Title>"
sayuntil "</Title>"

saynewline
findinline "</Item>"
while "<Item>"

[ParserScriptAlbum]=...
# ###################################################################
# This script parses the albums page for all common information.
#
# The current output variable is set via the outputto command
# All these fields are used by the confirm online information dialog
# ###################################################################
regexpreplace "<Binding>[^<]+</Binding>" ""
# CoverURL
outputto "coverurl"
findinline "<LargeImage>" 1 1
movechar -12
if "<LargeImage>"
findinline "<URL>"
sayuntil "</URL>"
else
findline "<ItemAttributes>"
findinline "<MediumImage>" 1 1
movechar -13
if "<MediumImage>"
findinline "<URL>"
sayuntil "</URL>"
else
findline "<ItemAttributes>"
endif
endif

# Artist
findinline "<ItemAttributes>"
outputto "Artist"
if "<Artist>"
findinline "<Artist>"
sayuntil "</Artist>"
else
if "<Creator"
findinline "<Creator"
findinline ">"
sayuntil "</Creator>"
else
sayregexp "(?<=<Author>)[^<]+(?=</Author>)" ", " "</ItemAttributes>"
endif
endif

# Publisher
findinline "<Label>" 1 1
movechar -7
if "<Label>"
outputto "Publisher"
findinline "<Label>"
sayuntil "</Label>"
else
findline "<ItemAttributes>"
endif

# Year
findinline "<ReleaseDate>" 1 1
movechar -13
if "<ReleaseDate>"
outputto "Year"
findinline "<ReleaseDate>"
saynextnumber
else
findline "<ItemAttributes>"
findinline "<PublicationDate>" 1 1
movechar -17
if "<PublicationDate>"
outputto "Year"
findinline "<PublicationDate>"
saynextnumber
else
findline "<ItemAttributes>"
endif
endif

# Album
outputto "Album"
findinline "<Title>"
sayuntil "</Title>"


#
gotoline 1
findinline "<Tracks>" 1 1
movechar -8
if "<Tracks>"
findinline "</Tracks>"
findinline "Disc Number=\"" -1 1
findinline "\""
endif

ifnot "1\""

# Totaldiscs
outputto "tTotalDiscs"
saynextnumber

gotoline 1

# Tracks
findinline "<Tracks>" 1 1
movechar -8
if "<Tracks>"
findinline " Number=\""
movechar -9
do
movechar -4

if "Disc"

set "tTotalTracks"
outputto "tTotalTracks"
sayregexp "(?<=Track Number=\")\d+(?=\">[^<]+</Track></Di)" "" "sc><"

set "tmp"
outputto "tmp"
findinline " Number=\""
sayregexp "\d+" "" "\""

outputto "Discnumber"
sayregexp "\d+" "" "\""
say "/"
sayoutput "tTotalDiscs"

findinline "<Track Number="
else
outputto "Discnumber"
sayoutput "tmp"
say "/"
sayoutput "tTotalDiscs"
endif
say "|"


outputto "Track Temp"
sayregexp "\d{1,3}" "," ">"
say "/"
sayoutput "ttotaltracks"
say "|"

outputto "Title Temp"
findinline ">"
sayuntil "</Track>"
say "|"
findinline "</Track>"

outputto "tracks"
say "|"

findinline " Number=\"" 1 1
movechar -9
while " Number=\"" 500
set "tmp"
set "tTotalDiscs"
set "tTotalTracks"
endif # Tracks Discnumber

else
# Single Disc

gotoline 1

# Tracks
findinline "<Tracks>" 1 1
movechar -8
if "<Tracks>"
outputto "TotalTracks"
sayregexp "(?<=Track Number=\")\d+(?=\">[^<]+</Track></Disc>)" "" "</Tracks>"

do
findinline "<Track Number="


outputto "Track Temp"
sayregexp "\d{1,3}" "," ">"
say "/"
sayoutput "totaltracks"
say "|"

outputto "Title Temp"
findinline ">"
sayuntil "</Track>"
say "|"

outputto "tracks"
say "|"
findinline "</Track>"
if "</Disc>"
findinline "<Disc Numbe" 1 1
if "r="
findinline ">"
endif
endif
while "<Track "
set "TotalTracks"
endif

endif


outputto "title"
sayoutput "title temp"

outputto "track"
sayoutput "track temp"

set "title temp"
set "track temp"
Go to the top of the page
 
+Quote Post
MichlMT
post Jul 4 2017, 14:14
Post #2


Member


Group: Members
Posts: 4
Joined: 4-July 17
Member No.: 23606
Mp3tag Version: 2.83c



ZITAT(Dan Dogma @ Jun 23 2017, 23:55) *
Amazon.de, amazon.co.uk and Amazon.fr are working for me. I just changed all the .co.uk in the script below to .fr and .de and saved it under different names.

I hope it will keep on working for quite a while. cool.gif



First of all. The script works fine. Is there a way to show the Cover Resolution in the results list, like it was in the earlier versions of the program? Thx
Go to the top of the page
 
+Quote Post
Dan Dogma
post Jul 5 2017, 10:00
Post #3


Member


Group: Full Members
Posts: 8
Joined: 23-June 17
Member No.: 23559
Mp3tag Version: 2.83i



ZITAT(MichlMT @ Jul 4 2017, 15:14) *
First of all. The script works fine. Is there a way to show the Cover Resolution in the results list, like it was in the earlier versions of the program? Thx


Yes it might be possible. The script I am using was edited by me years ago. I can update it, but I beg for a little patience.
Go to the top of the page
 
+Quote Post
Dan Dogma
post Jul 5 2017, 19:17
Post #4


Member


Group: Full Members
Posts: 8
Joined: 23-June 17
Member No.: 23559
Mp3tag Version: 2.83i



ZITAT(MichlMT @ Jul 4 2017, 15:14) *
First of all. The script works fine. Is there a way to show the Cover Resolution in the results list, like it was in the earlier versions of the program? Thx


I edited the newer Version of the Amazon Source. It now shows the Cover Resolution.

Attached File  Amazon.de_custom.src ( 6.52K ) Number of downloads: 136
for Amazon.de

Attached File  Amazon.co.uk_custom.src ( 6.53K ) Number of downloads: 106
for Amazon.co.uk

Attached File  Amazon.fr_custom.src ( 6.52K ) Number of downloads: 72
for Amazon.fr

On Win 10 all of the files must go here: c:\Program Files (x86)\Mp3tag\data\sources\

Note: you should customize the filenames of at least the .de source as of v283 it gets deleted upon installation.

Go to the top of the page
 
+Quote Post
MichlMT
post Jul 6 2017, 00:26
Post #5


Member


Group: Members
Posts: 4
Joined: 4-July 17
Member No.: 23606
Mp3tag Version: 2.83c



ZITAT(Dan Dogma @ Jul 5 2017, 19:17) *
I edited the newer Version of the Amazon Source. It now shows the Cover Resolution.

Attached File  Amazon.de_custom.src ( 6.52K ) Number of downloads: 136
for Amazon.de

Attached File  Amazon.co.uk_custom.src ( 6.53K ) Number of downloads: 106
for Amazon.co.uk

Attached File  Amazon.fr_custom.src ( 6.52K ) Number of downloads: 72
for Amazon.fr

On Win 10 all of the files must go here: c:\Program Files (x86)\Mp3tag\data\sources\

Note: you should customize the filenames of at least the .de source as of v283 it gets deleted upon installation.


Thx a lot. I will try these scripts in the morning. I love this program. It was so genius. And with these script it is, again :-)
Go to the top of the page
 
+Quote Post
MichlMT
post Jul 7 2017, 07:21
Post #6


Member


Group: Members
Posts: 4
Joined: 4-July 17
Member No.: 23606
Mp3tag Version: 2.83c



ZITAT(MichlMT @ Jul 6 2017, 01:26) *
Thx a lot. I will try these scripts in the morning. I love this program. It was so genius. And with these script it is, again :-)


Ok. Everything works fine again! Perfect!!!! Thx a lot.
Go to the top of the page
 
+Quote Post
slydog3333
post Jul 8 2017, 22:43
Post #7


Member


Group: Members
Posts: 2
Joined: 8-July 17
Member No.: 23619
Mp3tag Version: 2.82



Ok, so I only use amazon for cover images and it seems .de works fine still in 2.82, but I saw your fix and gave it a try, but pasting your files into the sources folder doesn't add them as options in mp3tag. How do I get them to actually show up?
Go to the top of the page
 
+Quote Post
DetlevD
post Jul 9 2017, 11:32
Post #8


Member


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



QUOTE (slydog3333 @ Jul 8 2017, 23:43) *
Ok, so I only use amazon for cover images and it seems .de works fine still in 2.82, but I saw your fix and gave it a try, but pasting your files into the sources folder doesn't add them as options in mp3tag. How do I get them to actually show up?

You should copy the file "Amazon.de.src", modified by Dave Reid, to ...
"%appdata%\Mp3tag\data\sources\Amazon#Amazon.de.DaveReid.src"

DD.20170709.1232.CEST


--------------------
* 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
slydog3333
post Jul 9 2017, 16:23
Post #9


Member


Group: Members
Posts: 2
Joined: 8-July 17
Member No.: 23619
Mp3tag Version: 2.82



QUOTE (DetlevD @ Jul 9 2017, 12:32) *
You should copy the file "Amazon.de.src", modified by Dave Reid, to ...
"%appdata%\Mp3tag\data\sources\Amazon#Amazon.de.DaveReid.src"

DD.20170709.1232.CEST


Thank you.

For anyone looking in Windows 7, the actual directory is: "C:\Users\*username*\AppData\Roaming\Mp3tag\data\sources"

Here are the files to add to have the sources in the cover art sub menu:

Attached File  Cover_Art_Amazon.de_custom.src ( 3.09K ) Number of downloads: 94


Attached File  Cover_Art_Amazon.fr_custom.src ( 3.09K ) Number of downloads: 59


Attached File  Cover_Art_Amazon.co.uk_custom.src ( 3.11K ) Number of downloads: 79


Go to the top of the page
 
+Quote Post
MichlMT
post Jul 11 2017, 10:15
Post #10


Member


Group: Members
Posts: 4
Joined: 4-July 17
Member No.: 23606
Mp3tag Version: 2.83c



ZITAT(slydog3333 @ Jul 9 2017, 17:23) *
Thank you.

For anyone looking in Windows 7, the actual directory is: "C:\Users\*username*\AppData\Roaming\Mp3tag\data\sources"

Here are the files to add to have the sources in the cover art sub menu:

Attached File  Cover_Art_Amazon.de_custom.src ( 3.09K ) Number of downloads: 94


Attached File  Cover_Art_Amazon.fr_custom.src ( 3.09K ) Number of downloads: 59


Attached File  Cover_Art_Amazon.co.uk_custom.src ( 3.11K ) Number of downloads: 79


Now these scripts work fine. It will only tag the cover, the other information stays unchanged. Perfect.
Go to the top of the page
 
+Quote Post
rama
post Jul 13 2017, 09:21
Post #11


Member


Group: Full Members
Posts: 26
Joined: 12-June 14
Member No.: 19513
Mp3tag Version: 2.59a



hi
yes i'm so happy
i guess it's the only script that can download covers
biggrin.gif

but i can't have them in a submenu

thanks
Go to the top of the page
 
+Quote Post
Dan Dogma
post Jul 13 2017, 12:13
Post #12


Member


Group: Full Members
Posts: 8
Joined: 23-June 17
Member No.: 23559
Mp3tag Version: 2.83i



ZITAT(rama @ Jul 13 2017, 10:21) *
hi
yes i'm so happy
i guess it's the only script that can download covers
biggrin.gif

but i can't have them in a submenu

thanks

You just have to change the second underscore (_) to # e.g. "Cover_Art_Amazon.co.uk_custom.src to Cover_Art#Amazon.co.uk_custom.src". This will put them to a submenu named Cover__Art with all Amazon sources in it.
Go to the top of the page
 
+Quote Post
rama
post Jul 13 2017, 14:36
Post #13


Member


Group: Full Members
Posts: 26
Joined: 12-June 14
Member No.: 19513
Mp3tag Version: 2.59a



QUOTE (Dan Dogma @ Jul 13 2017, 13:13) *
You just have to change the second underscore (_) to # e.g. "Cover_Art_Amazon.co.uk_custom.src to Cover_Art#Amazon.co.uk_custom.src". This will put them to a submenu named Cover__Art with all Amazon sources in it.

hi
thank you so much!
Go to the top of the page
 
+Quote Post
rama
post Aug 26 2017, 15:06
Post #14


Member


Group: Full Members
Posts: 26
Joined: 12-June 14
Member No.: 19513
Mp3tag Version: 2.59a



QUOTE (slydog3333 @ Jul 9 2017, 17:23) *
Thank you.

For anyone looking in Windows 7, the actual directory is: "C:\Users\*username*\AppData\Roaming\Mp3tag\data\sources"

Here are the files to add to have the sources in the cover art sub menu:

Attached File  Cover_Art_Amazon.de_custom.src ( 3.09K ) Number of downloads: 94


Attached File  Cover_Art_Amazon.fr_custom.src ( 3.09K ) Number of downloads: 59


Attached File  Cover_Art_Amazon.co.uk_custom.src ( 3.11K ) Number of downloads: 79

Hi
sadly they stop to work sad.gif sad.gif
Go to the top of the page
 
+Quote Post
radix
post Sep 14 2017, 13:34
Post #15


Member


Group: Full Members
Posts: 18
Joined: 27-December 08
Member No.: 8151
Mp3tag Version: 2.77



ZITAT(rama @ Aug 26 2017, 14:06) *
Hi
sadly they stop to work sad.gif sad.gif

I'm afraid so.


ZITAT(Mp3tag)
>>400 Bad Request
Go to the top of the page
 
+Quote Post

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: 21st September 2017 - 22:12