Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 5630b16e99 1.206.2 2022-02-07 01:57:14 +01:00
DebaucheryLibrarian 4bcf7ef45b Storing associations if existing media are found. 2022-02-07 01:57:09 +01:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.206.1", "version": "1.206.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx", "name": "traxxx",
"version": "1.206.1", "version": "1.206.2",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@casl/ability": "^5.2.2", "@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "traxxx", "name": "traxxx",
"version": "1.206.1", "version": "1.206.2",
"description": "All the latest porn releases in one place", "description": "All the latest porn releases in one place",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

@ -828,7 +828,7 @@ async function associateReleaseMedia(releases, type = 'release') {
const media = storedMediasById[baseMedia.id]; const media = storedMediasById[baseMedia.id];
const mediaId = media?.use || media?.entry?.id; const mediaId = media?.use || media?.entry?.id;
if (mediaId && storedMediasById[mediaId]) { if (mediaId) {
acc.push({ acc.push({
[`${type}_id`]: releaseId, [`${type}_id`]: releaseId,
media_id: mediaId, media_id: mediaId,