Consider this thread a support thread for any userscript created by me. Questions, feedback, problems and bug reports most welcome here!
For reference:
The userscript repository
Issue tracker
Consider this thread a support thread for any userscript created by me. Questions, feedback, problems and bug reports most welcome here!
For reference:
The userscript repository
Issue tracker
@nadl40: Responding here to keep the noise in the other thread to a minimum.
Iāve looked into Qobuz a bit, getting the covers should be easy enough since the path to the full res cover merely depends on the album ID. For booklets though, I presume you need an account to download those? If so, that wonāt be supported for two reasons: 1) Doing anything with accounts, passwords, API keys, etc. in a userscript is pretty difficult to do in a userscript, and 2) Iād rather not publish a script that automatically uploads content thatās only available with a paid subscription, for obvious reasons If booklets can be retrieved without an account or API key or anything like that, Iād be happy to see what I can do.
Could you perhaps provide some Qobuz links, maybe even a MB release which has one attached, so I can figure out what these links look like? It looks like itās https://www.qobuz.com/[language]/album/[name]/[id]
, with language being optional, but maybe there are other link formats?
this is a dream come true for me. thank you so much this saves us a lot of time. i would suggest, if possible, to add vgmdb as well
Iāve checked my script and unfortunately you need API authenticationā¦ for a while I thought this is not required as once you get a hash of album metadata then download links do not require authentication
george@ideapad:~/scripts/qobuz$ ./get_qobuz_metadata_only.pl --get 7619990103283 | grep pdf
āoriginal_urlā => āhttps://static.qobuz.com/goodies/63/000082836.pdfā,
āurlā => āhttps://static.qobuz.com/goodies/63/000082836.pdfā
Here is a qobuz link to a release with booklet
This release is same as the booklet links above but to get the id of the booklet, one needs to retrieve the hash for an album for which you need authenticationā¦ too bad. Itās a good source for booklets and pretty bad metadata
Yeah, Iād love a way to know barcodes on the new Qobuz releases since they seem to have removed them from their URLs. I havenāt found any API thatās open to the public.
The endpoint is http://www.qobuz.com/api.json/0.2 and it still works.
Iāve used it maybe 3 or 4 years ago and the documentation was freely available but looks like itās removed by now, they had a github and a website.
You had to get app id and of course have a subscription.
Yeah, Iāve always had roadblocks because I donāt pay for the service or understand how to get keys etc. I always have to rely on public APIs like Spotify, Deezer, HDtracks or 7digital.
Found it (and bookmarked it ) here qobuz API ver 0.2
I will go over it as Iām not 100% sure the album call needs to be authenticated, they had number of non authenticated calls for searches.
Unfortunately it seems that only the main page of that repo is archived, pages deeper in the docs arenāt archived
Iāve noticed it mentions āback coverā as well, are those publicly accessible? If so, do you have an example? Might be interesting to consider (although a digital release with a back cover seems a bit weird to me)
No, I have not seen backover yet, album cover json looks like that
'image' => {
'thumbnail' => 'https://static.qobuz.com/images/covers/83/32/7619990103283_50.jpg',
'large' => 'https://static.qobuz.com/images/covers/83/32/7619990103283_600.jpg',
'back' => undef,
'small' => 'https://static.qobuz.com/images/covers/83/32/7619990103283_230.jpg'
},
Also no luck getting the album json without authentication. This could be done as I have a working script but user would need to provide credentials to get authorization token and then album json can be returned.
As you said before, it does not fit well as a user script.
Alright, if you come across one with a back cover that can be accessed without authentication, let me know and Iāll see whether it can be integrated.
Iāve just pushed 2021.9.23 which adds support for Amazon, Amazon Music, and Qobuz. Thanks for the suggestion @nadl40!
@crayonbro: VGMdb seems like a great provider to add, Iāve created a ticket to track it: #36. Extracting the images should be very easy, but Iād like to translate its captions to MB artwork types and comments too, so itās going to take a little while longer to add.
This script has been absolutely incredible. Clicking the Discogs or Bandcamp button is a HEAVENLY experience. VGMDB will be the icing
Does anyone else get a double button for releases with 1 Bandcamp link?
Might be on purpose, but the second button here doesnāt return anything so seems like something might be broken? Note that it has a āstream atā and āpurchaseā relationship for the same link. It doesnāt happen for this release which only has 1 relationship.
Hmmm I was just going to mention that if a release doesnāt have art it would be cool if we didnāt have to click through an empty cover art page to submit (should really be a MB request but you are faster ahaha), but I saw that the mb. INLINE STUFF script is already doing that for me
Thatās not intentional and was due to the script not properly deduplicating URL ARs. It shouldāve been fixed in 2021.9.22 or 2021.9.22.2 yesterday.
On the topic of updates, is everyone receiving automatic updates now that the script location has changed? If youāre on any version above 2021.9.21, then automatic updates are working. Keep in mind that the first update has only been out for less than 24h though, depending on your update frequency, your userscript engine might not have checked yet.
@ROpdebee thanks for this great script, I think you can improve the edit note:
https://bandcamp.url, maximized
. It would be better if there was a whitespace at the end of url to ease cutānāpaste: https://bandcamp.url (maximized)
f4.bcbits...
url)Something like:
https://avecaesar.bandcamp.com/album/split (maximised)
https://f4.bcbits.com/img/a0032185859_0.jpg
ā
MB: Enhanced Cover Art Uploads 2021.9.23
I wonder if you could add qobuz.com
Good cover art but most importantly they also have booklets when labels provide it.
I have some perl scripts that can provide a url for both, might you save time figuring out qobuz API.
Please let me know if interested.
Enhanced Cover Art Uploads
Paste multiple external links at once
add
and create
pages too? Especially in the release when having to add new artists would be nice.
https://open.spotify.com/artist/2V7GcwRUXpWdgYSyPXv870
https://www.instagram.com/jera.isidore/
https://twitter.com/JeraIsidore
https://www.youtube.com/channel/UCPHrO3_NSeOZ3ONErcBMZLQ
https://www.facebook.com/Jera-Isidore-104861881873537/
https://paypal.me/JeraIsidore
https://www.facebook.com/smartstephanie
https://www.youtube.com/user/SmartStephanieTV
After pasting remove any of the two new links.
Personally I think we shouldnāt do that. This script has saved me so much time! Iām super happy to just hit and keep it running in a tab while I add other date and check if itās done a minute or two later. It feels to me better to have those cover artworks in CAA & MB than to miss out on them.
That would be great to know the dimensions of the cover coming through. Sometimes the ones on discogs are so tiny thereās no readable text on it, but you canāt see that until you click through. Iām not a fan of having those uploaded, but if they were at least sucked in to the upload page first I can then quickly scan and delete the ones that donāt meet my personal cut off.
2021.9.23.2 is out, with two enhancements:
https://vgmdb.net/album/86043
* https://media.vgm.io/albums/34/86043/86043-1555603051.jpg
* https://media.vgm.io/albums/34/86043/86043-1560159976.jpg
* https://media.vgm.io/albums/34/86043/86043-1560159983.jpg
* ā¦and 1 additional images
https://www.amazon.co.jp/gp/product/B07QTNG28W
* https://images-na.ssl-images-amazon.com/images/I/51Avck-4usL.jpg
Maximised from https://images-na.ssl-images-amazon.com/images/I/51Avck-4usL._AC_US40_.jpg
ā
MB: Enhanced Cover Art Uploads 2021.9.23.2
https://github.com/ROpdebee/mb-userscripts
@chaban: Itāll take me a while to fully triage all of that (update from the future: It took 2 hours), but first impressions:
An option to abort and/or add only front/first cover.
Aborting while itās fetching images would be quite tricky, and I generally agree with @mattgoldspink here. Iām concerned that allowing an abort might lead to partial cover sets, and that wouldnāt be ideal. OTOH, having the option to fetch only the first image (presumably the front cover) would be a good compromise, IMO. #37
In general, I think itād be nice if it first grabbed and displayed small thumbnails for all images, and only then fetches and queues the full image. Thatās a non-trivial change to make though.
Bandcamp provider: Grab track images
Good idea, definitely feasible and worth it. #38
Bandcamp provider: Consider also grabbing the image as presented on the page
That should also be feasible. Off the top of my head, Iād say 1) grab the original image since weāll definitely need it, 2) check whether its dimensions are non-square, 3) grab the thumbnail if it is. Iād argue that there should be some allowance of non-squareness though, thereās not much point in doing that if the original is 1000x1010. So maybe anything within a 1.0 Ā± 0.05 ratio could be considered square (So 1000x1050 would be kept as-is, 1000x1100 would get the square thumbnail)? #40
VGMdb provider: To see all images one needs to be logged in.
The VGMdb provider added in the most recent update uses the vgmdb.info 3rd-party open API, which seems to return all covers without requiring any account or API token.
Display hint about cover provider quality (ideally they can be compared)
That would be a good addition for sure, but Iām a bit stumped on how to best display it. Adding a markdown file in the repo and linking to it (like whatās being done for the supported providers) would be easiest, would that be an acceptable solution? To summarise the edit notes:
I donāt think there will be any reliable way to always grab the ābestā image (and ābestā is often subjective anyway), like e.g. the Bandcamp example thatās upscaled from a 400x400 image, I donāt believe thereās any way that could be detected automatically without significantly hampering UX and hogging browser resources. For Apple Music, at first glance it does seem possible to automatically do the substitution of the file extension (there are some exceptions, notably URLs given by a-tisket, which use the iTunes URLs instead of Apple Music, and those donāt include the original file name). However, are we sure that those JPEGs arenāt lossily re-encoded versions of a lossy source JPEG?
In general, I think three things are needed:
Points 2 and 3 would be feasible to do once the CAA Dimensions and Supercharged CAA Edits scripts are ported to TypeScript. Itād also be nice if all of the image properties would be calculated for all images prior to actually fetching it, but Iām concerned that that would be too taxing on the network connection.
Iāve created #41 to track, but I have to work out the details a lot more.
Paste multiple external links at once
Adding it on more pages should be possible. The other thing is indeed a bug which I had encountered already, in short, the script isnāt listening for URL removals so itās also not adding itself to the new input boxes.
Possible bug: Enhanced Cover Art Uploads (2021.9.23.3) using Tampermonkey adds undefined
instead of the homepageURL
in edit note footer. Works fine using Violentmonkey though.
Thanks, there is an inconsistency between the different userscript managers:
console.log(GM_info.script);
{ // Violentmonkey
...
"namespace": "https://github.com/ROpdebee/mb-userscripts",
"homepageURL": "https://github.com/ROpdebee/mb-userscripts",
// "homepage" is undefined
...
}
{ // Tampermonkey
...
"namespace": "https://github.com/ROpdebee/mb-userscripts",
"homepage": "https://github.com/ROpdebee/mb-userscripts",
// "homepageURL" is undefined
...
}
// Greasemonkey: script is not running at all
Edit: Fix has been tested and published in version 2021.9.24.