Only using ID part of URL as entry ID for Cherry Pimps to ensure backward compatability.
This commit is contained in:
parent
5ac0d79b99
commit
82f8b135bd
|
|
@ -13,7 +13,7 @@ function scrapeAll(scenes) {
|
|||
const { pathname } = new URL(url);
|
||||
|
||||
release.url = url;
|
||||
release.entryId = pathname.match(/\/trailers\/(.*).html/)[1];
|
||||
release.entryId = pathname.match(/\/trailers\/(\d+).*.html/)[1];
|
||||
|
||||
release.title = query.content('.item-title a');
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ function scrapeScene({ query }, url, _channel, baseRelease) {
|
|||
const release = { url };
|
||||
const { pathname } = new URL(url);
|
||||
|
||||
release.entryId = pathname.match(/\/trailers\/(.*).html/)[1];
|
||||
release.entryId = pathname.match(/\/trailers\/(\d+).*.html/)[1];
|
||||
|
||||
release.title = query.content('.item-title h1');
|
||||
release.description = query.content('.update-info-block p');
|
||||
|
|
|
|||
Loading…
Reference in New Issue