Open josephguillaume opened 1 month ago
Another very minor issue that I'm sharing for completeness, sorry! Feel free to close as won't fix.
The code for parseRootDomain assumes a two part root domain https://github.com/NoelDeMartin/media-kraken/blob/26c09436cbf71236fee03c034025750c7769454c/src/utils/Url.ts#L59
This breaks down e.g. for externalUrls with country TLD e.g. https://www.sbs.com.au/ondemand/movie/ten-canoes/11858499617 renders as "view at com.au" https://iview.abc.net.au/show/imitation-game renders as "view at net.au"
A general solution seems non-trivial, but here's one that would be a relatively minor adjustment https://github.com/capturr/get-root-domain/blob/main/src/index.ts
Hm yeah, that definitely looks like a bug, I'll look into it next time I work on the project. Thanks for opening an issue :).
Another very minor issue that I'm sharing for completeness, sorry! Feel free to close as won't fix.
The code for parseRootDomain assumes a two part root domain https://github.com/NoelDeMartin/media-kraken/blob/26c09436cbf71236fee03c034025750c7769454c/src/utils/Url.ts#L59
This breaks down e.g. for externalUrls with country TLD e.g. https://www.sbs.com.au/ondemand/movie/ten-canoes/11858499617 renders as "view at com.au" https://iview.abc.net.au/show/imitation-game renders as "view at net.au"
A general solution seems non-trivial, but here's one that would be a relatively minor adjustment https://github.com/capturr/get-root-domain/blob/main/src/index.ts