"
268 | outputto "RATING WMP"
269 | sayuntil "<"
270 | else
271 | outputto "RATING WMP"
272 | say "0.1"
273 | endif
274 | else
275 | outputto "RATING WMP"
276 | say "0.2"
277 | endif
278 |
279 | # Description
280 | gotoline 1
281 | findline "bc-text-bold\" >Publisher's Summary" 1 1
282 | unspace
283 | if "bc-text-bold\" >Publisher's Summary"
284 | outputto "Comment"
285 | findline ""
287 | regexpreplace "?[^><]+>" ""
288 | unspace
289 | regexpreplace " +" " "
290 | replace "bc-color-secondary\" >" ""
291 | sayrest
292 | else
293 | gotoline 1
294 | findline ", \"description\": \"" 1 1
295 | unspace
296 | if ", \"description\": \""
297 | outputto "Comment"
298 | findinline ", \"description\": \""
299 | unspace
300 | joinuntil ", \"image"
301 | unspace
302 | regexpreplace "?[^><]+>" ""
303 | unspace
304 | regexpreplace " +" " "
305 | replace ", \"description\": \"" ""
306 | sayuntil ", \"image"
307 | findline ", \"publisher\": \""
308 | unspace
309 | findinline ": \""
310 | outputto "Publisher"
311 | sayuntil "\""
312 | findline ", \"datePublished\": \""
313 | unspace
314 | findinline ": \""
315 | outputto "Year"
316 | SayNChars 4
317 | outputto "RELEASETIME"
318 | sayoutput "Year"
319 | else
320 | endif
321 | endif
322 |
323 | # Inbedded Description (if no Publisher's Summary exists)
324 |
325 | # Set Artist = artist, narrator
326 | outputto "artist"
327 | sayoutput "Albumartist"
328 | say ", "
329 | sayoutput "Composer"
330 |
331 | #%artist%=regexp(%artist%,(\b\w+\b)(?=[\s\S]*\b\1\b).+, )
332 |
333 | # Set Audible Album URL
334 | outputto "WWWAUDIOFILE"
335 | sayoutput "CurrentUrl"
336 |
337 | # Set Comment to DESCRIPTION for better MP4 support
338 | outputto "DESCRIPTION"
339 | sayoutput "Comment"
340 |
341 | # Set iTunes Media Type to Audiobook
342 | outputto "ITUNESMEDIATYPE"
343 | say "Audiobook"
344 |
345 | # Set iTunes Gapless Playback
346 | outputto "ITUNESGAPLESS"
347 | say "1"
348 |
349 | # Experimental Tag Shoehorn
350 | # Set Series as Movement
351 | outputto "MOVEMENTNAME"
352 | sayoutput "Series"
353 |
354 | # Set Series # as Movement #
355 | outputto "MOVEMENT"
356 | sayoutput "series-part"
357 |
358 | # © Year, ©, Release Year, Publisher, the closest we can get to Original Pub year, Audible is not consistent with dates
359 | findline ""
360 | unspace
361 | joinuntil ""
362 | findinline "(P)" 1 1
363 | movechar -17
364 | if "Public Domain"
365 | outputto "Copyright"
366 | say "Public Domain"
367 | outputto "year"
368 | findinline "(P)"
369 | SayNChars 4
370 | outputto "RELEASETIME"
371 | sayoutput "year"
372 | outputto "Publisher"
373 | movechar 1
374 | sayuntil "<"
375 | else
376 | findline "" 1 1
377 | unspace
378 | findinline "©" 1 1
379 | movechar -1
380 | If "©"
381 | IfNot " Copyright"
382 | movechar 1
383 | outputto "Year"
384 | SayNChars 4
385 | findline ""
386 | replace "(P)" "; "
387 | findinline "©"
388 | outputto "Copyright"
389 | sayuntil ";"
390 | movechar 2
391 | outputto "RELEASETIME"
392 | SayNChars 4
393 | outputto "Publisher"
394 | movechar 1
395 | sayuntil "<"
396 | else
397 | endif
398 | else
399 | endif
400 | endif
401 |
--------------------------------------------------------------------------------
/Audible.co.uk#Search by Album.src:
--------------------------------------------------------------------------------
1 | # ###################################################################
2 | #
3 | # Mp3tag parsing for Audible.de, created by dano on 2013-03-11
4 | #
5 | # 2013-09-20: Updated
6 | # 2020-03-24: Updated
7 | # 2020-04-06: Updated to Audible.com
8 | # 2020-06-28: Updated to region independent (u/Carlyone)
9 | # 2020-08-05: Updated
10 | # 2023-08-11: Updated (u/d-e-x-x)
11 | #
12 | # This file should be in your sources dir. %appdata%\roaming\mp3tag\data\sources
13 | # On Windows XP it's C:\Documents and Settings\*username*\Application Data\Mp3tag\data\sources
14 | #
15 | #
16 |
17 |
18 | [Name]=Audible.co.uk
19 | [BasedOn]=www.audible.co.uk
20 | [IndexUrl]=https://www.audible.co.uk/search?ipRedirectOverride=true&overrideBaseCountry=true&keywords=
21 | [AlbumUrl]=https://www.audible.co.uk
22 | [WordSeperator]=+
23 | [IndexFormat]=%_url%|%Album%|%Author%|%Duration%|%Year%|%Language%
24 | [SearchBy]=%artist% $regexp(%album%,'[- ]+cd ?\d+$',,1)
25 | [Encoding]=url-utf-8
26 |
27 |
28 | [ParserScriptIndex]=...
29 | # ###################################################################
30 | # I N D E X
31 | # ###################################################################
32 | #DebugWriteInput "C:\Users\%user%\Desktop\mp3tag.html"
33 | #Debug "ON" "C:\Users\%user%\Desktop\mp3tagdebug.txt"
34 |
35 | #Only select the area we need instead of everyting.
36 | findline "" "\">"
42 | replace "> <" "><"
43 | replace "Running Time:" ""
44 |
45 | findinline "bc-spacing-micro"
46 | findinline ""
57 | sayuntil "<"
58 |
59 | findinline ""
60 | if "
- "
63 | sayuntil "<"
64 |
65 | else
66 | if "
- "
69 | sayuntil "<"
70 | endif
71 |
72 | endif
73 | say "|"
74 |
75 | #Author
76 | findinline "authorLabel\">"
77 | findinline "href="
78 | findinline ">"
79 | sayuntil "<"
80 | say "|"
81 |
82 |
83 | # Duration
84 | findinline "runtimeLabel\">"
85 | findinline "bc-color-secondary\">"
86 | sayuntil "<"
87 | say "|"
88 |
89 | # Year
90 | findinline "Release date:"
91 | sayuntil "<"
92 | say "|"
93 |
94 | # Language
95 | findinline "languageLabel\""
96 | findinline "Language:"
97 | sayuntil "<"
98 |
99 | saynewline
100 | findinline "
"
129 | findinline ":" 1 1
130 | movechar -1
131 | if ":"
132 | findline ""
135 | outputto "Album"
136 | regexpreplace "?[^><]+>" ""
137 | unspace
138 | regexpreplace " +" " "
139 | sayuntil ":"
140 | outputto "subtitle"
141 | movechar 2
142 | sayuntil "<"
143 | else
144 | findline "" 1 1
147 | outputto "Album"
148 | sayuntil "<"
149 | endif
150 |
151 | # Subtitle of Album
152 | regexpreplace " +" " "
153 | replace "" ""
154 | findinline "bc-text bc-size-medium\" " 1 1
155 | if ">"
156 | movechar 1
157 | outputto "Subtitle"
158 | sayuntil "<"
159 | else
160 | gotoline 1
161 | endif
162 |
163 | # Author
164 | outputto "Albumartist"
165 | findline "authorLabel"
166 | moveline 3 1
167 | joinuntil "
"
168 | regexpreplace "?[^><]+>" ""
169 | unspace
170 | regexpreplace " +" " "
171 | regexpreplace ".+By:" ""
172 | sayrest
173 |
174 | # narratorLabel
175 | outputto "Composer"
176 | findline "narratorLabel" 1 1
177 | unspace
178 | findline "href="
179 | findinline ">"
180 | sayuntil "<"
181 | gotoline 1
182 |
183 | # Grouping / Series
184 | findline "seriesLabel" 1 1
185 | unspace
186 | if "seriesLabel"
187 | outputto "SHOWMOVEMENT"
188 | say "1"
189 | outputto "SERIES"
190 | findline "href="
191 | findinline ">"
192 | sayuntil "<"
193 | outputto "series-part"
194 | findinline "a>, Book " 1 1
195 | SayRegexp "^[.?\d]+(?=,|$)"
196 | outputto "Albumsort"
197 | sayoutput "series"
198 | say " "
199 | sayoutput "series-part"
200 | say " - "
201 | sayoutput "album"
202 | outputto "CONTENTGROUP"
203 | sayoutput "series"
204 | say ", Book #"
205 | sayoutput "series-part"
206 | IfnotOutput "Subtitle"
207 | outputto "subtitle"
208 | sayoutput "CONTENTGROUP"
209 | else
210 | endif
211 | else
212 | IfnotOutput "Subtitle"
213 | outputto "Albumsort"
214 | sayoutput "album"
215 | else
216 | outputto "Albumsort"
217 | sayoutput "album"
218 | say ": "
219 | sayoutput "Subtitle"
220 | endif
221 | gotoline 1
222 | endif
223 |
224 | # 1st Genre
225 | findline "categoriesLabel" 1 1
226 | unspace
227 | if "categoriesLabel"
228 | outputto "tmp_Genre1"
229 | findinline "categoriesLabel" 1 1
230 | joinuntil ""
231 | findinline "href="
232 | findinline ">"
233 | sayuntil "<"
234 | # 2nd Genre
235 | findinline "href=" 1 1
236 | movechar -1
237 | if "="
238 | findinline ">"
239 | outputto "tmp_Genre2"
240 | sayuntil "<"
241 | outputto "genre"
242 | sayoutput "tmp_Genre1"
243 | say "/"
244 | sayoutput "tmp_Genre2"
245 | else
246 | outputto "genre"
247 | sayoutput "tmp_Genre1"
248 | endif
249 | else
250 | gotoline 1
251 | endif
252 |
253 | # Rating
254 | gotoline 1
255 | findline "ratingsLabel" 1 1
256 | unspace
257 | if "ratingsLabel"
258 | outputto "RATING WMP"
259 | findinline "ratingsLabel" 1 1
260 | joinuntil ""
262 | findinline ">"
263 | sayuntil "<"
264 | else
265 | outputto "RATING WMP"
266 | say "0.0"
267 | gotoline 1
268 | endif
269 |
270 | # Description
271 | findline ", \"description" 1 1
272 | joinuntil ", \"image"
273 | outputto "Comment"
274 | findinline ": "
275 | regexpreplace "?[^><]+>" ""
276 | unspace
277 | regexpreplace " +" " "
278 | replace ", \"description\": \"" ""
279 | sayuntil ", \"image"
280 |
281 | # Set Artist = artist, narrator
282 | outputto "artist"
283 | sayoutput "Albumartist"
284 | say ", "
285 | sayoutput "Composer"
286 |
287 | #%artist%=regexp(%artist%,(\b\w+\b)(?=[\s\S]*\b\1\b).+, )
288 |
289 | # Set Audible Album URL
290 | outputto "WWWAUDIOFILE"
291 | sayoutput "CurrentUrl"
292 |
293 | # Set Comment to DESCRIPTION for better MP4 support
294 | outputto "DESCRIPTION"
295 | sayoutput "Comment"
296 |
297 | # Set iTunes Media Type to Audiobook
298 | outputto "ITUNESMEDIATYPE"
299 | say "Audiobook"
300 |
301 | # Set iTunes Gapless Playback
302 | outputto "ITUNESGAPLESS"
303 | say "1"
304 |
305 | # Experimental Tag Shoehorn
306 | # Set Series as Movement
307 | outputto "MOVEMENTNAME"
308 | sayoutput "Series"
309 |
310 | # Set Series # as Movement #
311 | outputto "MOVEMENT"
312 | sayoutput "series-part"
313 |
314 | # © Year, ©, Release Year, Publisher, the closest we can get to Original Pub year, Audible is not consistent with dates
315 | findline "
"
316 | joinuntil "
"
317 | #findline "(P)"
318 | findinline "(P)" 1 1
319 | movechar -17
320 | if "Public Domain"
321 | outputto "Copyright"
322 | say "Public Domain"
323 | outputto "year"
324 | findinline "(P)"
325 | SayNChars 4
326 | outputto "Publisher"
327 | movechar 1
328 | sayuntil "<"
329 | else
330 | gotoline 1
331 | findline "©"
332 | findinline "©"
333 | outputto "Year"
334 | SayNChars 4
335 | gotoline 1
336 | findline "©"
337 | replace "(P)" "; "
338 | findinline "©"
339 | outputto "Copyright"
340 | sayuntil ";"
341 | movechar 2
342 | outputto "RELEASETIME"
343 | SayNChars 4
344 | outputto "Publisher"
345 | movechar 1
346 | sayuntil "<"
347 | endif
348 |
349 | # Set Discnumber
350 | #outputto "DISCNUMBER"
351 | #sayoutput "series-part"
352 |
353 | # NOT WORKING
354 | # Set SERIES = Mood as a workaround for filtering collections in PLEX
355 | #outputto "MOOD"
356 | #sayoutput "series"
357 |
--------------------------------------------------------------------------------
/Audible.com#Search by Album - BETA.src:
--------------------------------------------------------------------------------
1 | # ###################################################################
2 | #
3 | # Mp3tag parsing for Audible.de, created by dano on 2013-03-11
4 | #
5 | # 2013-09-20: Updated
6 | # 2020-03-24: Updated
7 | # 2020-04-06: Updated to Audible.com
8 | # 2020-06-28: Updated to region independent (u/Carlyone)
9 | # 2020-08-05: Updated
10 | # 2023-08-11: Updated (u/d-e-x-x)
11 | # 2023-11-01: (BluebonnetSK) Added Narrator to search, Fixed ASIN, Added Date Published & Duration, Added Debug to Album, Updated ArtistID
12 | #
13 | # This file should be in your sources dir. %appdata%\roaming\mp3tag\data\sources
14 | # On Windows XP it's C:\Documents and Settings\*username*\Application Data\Mp3tag\data\sources
15 | #
16 | #
17 |
18 |
19 | [Name]=Audible.com
20 | [BasedOn]=www.audible.com
21 | [IndexUrl]=https://www.audible.com/search?ipRedirectOverride=true&overrideBaseCountry=true&language=en_US&keywords=
22 | [AlbumUrl]=https://www.audible.com
23 | [WordSeperator]=+
24 | [IndexFormat]=%_url%|%Album%|%Author%|%Narrator%|%Duration%|%Year%|%Language%
25 | [SearchBy]=$regexp(%artist%,'\([^)]*\)',,1) $regexp(%album%,'[- ]+cd ?\d+$',,1)
26 | [Encoding]=url-utf-8
27 |
28 |
29 | [ParserScriptIndex]=...
30 | # ###################################################################
31 | # I N D E X
32 | # ###################################################################
33 | #DebugWriteInput "C:\Users\%user%\Desktop\mp3tag.html"
34 | #Debug "ON" "C:\Users\%user%\Desktop\mp3tagdebug.txt"
35 |
36 | #Only select the area we need instead of everything.
37 | findline "