|
@@ -402,7 +402,7 @@ function ToggleUnknown() {
|
402
|
402
|
}
|
403
|
403
|
}
|
404
|
404
|
|
405
|
|
-function AnidbAutofill() {
|
|
405
|
+function AnimeAutofill() {
|
406
|
406
|
var map = { artist: 'idols_0',
|
407
|
407
|
title: 'title',
|
408
|
408
|
title_rj: 'title_rj',
|
|
@@ -410,7 +410,7 @@ function AnidbAutofill() {
|
410
|
410
|
year: 'year',
|
411
|
411
|
description: 'album_desc' }
|
412
|
412
|
var aid = $('#anidb').raw().value
|
413
|
|
- $.getJSON('/ajax.php?action=anidb&aid='+aid, function(data) {
|
|
413
|
+ $.getJSON('/ajax.php?action=autofill&cat=anime&aid='+aid, function(data) {
|
414
|
414
|
if (data.status != "success") return
|
415
|
415
|
for (i in data.response) {
|
416
|
416
|
if (map[i] && !($('#'+map[i]).raw().value)) {
|
|
@@ -431,7 +431,7 @@ function JavAutofill() {
|
431
|
431
|
tags: 'tags',
|
432
|
432
|
description: 'album_desc' }
|
433
|
433
|
var cn = $('#javdb_tr #catalogue').raw().value.toUpperCase()
|
434
|
|
- $.getJSON('/ajax.php?action=javfill&cn='+cn, function(data) {
|
|
434
|
+ $.getJSON('/ajax.php?action=autofill&cat=jav&cn='+cn, function(data) {
|
435
|
435
|
if (data.status != "success") {
|
436
|
436
|
$('#catalogue').raw().value = 'Failed'
|
437
|
437
|
return
|
|
@@ -462,7 +462,7 @@ function JavAutofill() {
|
462
|
462
|
})
|
463
|
463
|
}
|
464
|
464
|
|
465
|
|
-function DoujAutofill() {
|
|
465
|
+function MangaAutofill() {
|
466
|
466
|
var map = { artists: 'idols',
|
467
|
467
|
title: 'title',
|
468
|
468
|
title_jp: 'title_jp',
|
|
@@ -474,7 +474,7 @@ function DoujAutofill() {
|
474
|
474
|
pages: 'pages',
|
475
|
475
|
description: 'release_desc' }
|
476
|
476
|
var nh = $('#ehentai_tr #catalogue').raw().value
|
477
|
|
- $.getJSON('/ajax.php?action=doujin&url='+nh, function(data) {
|
|
477
|
+ $.getJSON('/ajax.php?action=autofill&cat=manga&url='+nh, function(data) {
|
478
|
478
|
if (data.status != "success") {
|
479
|
479
|
$('#catalogue').raw().value = 'Failed'
|
480
|
480
|
return
|
|
@@ -566,7 +566,7 @@ function MediaInfoExtract() {
|
566
|
566
|
function initAutofill() {
|
567
|
567
|
$('[autofill]').each(function(i, el) {
|
568
|
568
|
el.addEventListener('click', function(event) {
|
569
|
|
- ({'douj':DoujAutofill, 'anime':AnidbAutofill, 'jav':JavAutofill})[el.attributes['autofill'].value]()
|
|
569
|
+ ({'douj':MangaAutofill, 'anime':AnimeAutofill, 'jav':JavAutofill})[el.attributes['autofill'].value]()
|
570
|
570
|
})
|
571
|
571
|
})
|
572
|
572
|
}
|