Commit 16361b6
authored
merge: Add provider for ototoy.jp
Implemented as an HTML scraper, introducing @b-fuze/deno-dom as HTML
DOM parsing library for Harmony.
While OTOTOY has a mobile app (https://ototoy.app/), and we could
theoretically utilize its internal API to enumerate tracks
(`https://api.ototoy.jp/app/list/tracks/in_album/<album_id>`),
with the API we would lose:
* Support for multiple artists
* Release date
* Label information
I tried looking into the requests the app makes, and I don't think it
ever fetches that information.
Since Harmony has to maintain backwards compatibility with old release
snapshots, we simply cache the JSON produced from the scraping.
So the DOM extractor could change over time as long as it produces the
same JSON structure.
Unfortunately, there's no:
* GTIN support
* Available regions (Not exclusively Japan)
Also, there *are* technically URLs for tracks. For example the track for
https://ototoy.jp/_/default/p/3016055 is available at
https://ototoy.jp/opus/index.php/19511684, but it's just a redirect back
to the album page, so I didn't figure it'd be worth adding.File tree
18 files changed
+3336
-0
lines changed- providers
- Ototoy
- __snapshots__
- server
- components
- icons
- routes
- static
- testdata/https!/jp.ototoy/_/default/p
- utils
18 files changed
+3336
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments