anime-downloader bug fix 19.
check download fix
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{#<div>#}
|
<!--{#<div>#}-->
|
||||||
{# <form id='program_list'>#}
|
<!--{# <form id='program_list'>#}-->
|
||||||
{# {{ macros.setting_input_text_and_buttons('code', '작품 Code', [['analysis_btn', '분석'], ['go_ohli24_btn', 'Go OHLI24']], desc='예) "https://ohli24.net/c/녹을 먹는 비스코" 이나 "녹을 먹는 비스코"') }}#}
|
<!--{# {{ macros.setting_input_text_and_buttons('code', '작품 Code', [['analysis_btn', '분석'], ['go_ohli24_btn', 'Go OHLI24']], desc='예) "https://ohli24.net/c/녹을 먹는 비스코" 이나 "녹을 먹는 비스코"') }}#}-->
|
||||||
{# </form>#}
|
<!--{# </form>#}-->
|
||||||
{# <form id="program_auto_form">#}
|
<!--{# <form id="program_auto_form">#}-->
|
||||||
{# <div id='episode_list'></div>#}
|
<!--{# <div id='episode_list'></div>#}-->
|
||||||
{# </form>#}
|
<!--{# </form>#}-->
|
||||||
{#</div> <!--전체-->#}
|
<!--{#</div> <!–전체–>#}-->
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div id="anime_category" class="btn-group" role="group" aria-label="Basic example">
|
<div id="anime_category" class="btn-group" role="group" aria-label="Basic example">
|
||||||
@@ -99,19 +99,13 @@
|
|||||||
let str = ''
|
let str = ''
|
||||||
let tmp = ''
|
let tmp = ''
|
||||||
|
|
||||||
// {#str += "<d"#}
|
|
||||||
// {#str += m_hr_black();#}
|
|
||||||
// {#str += m_row_start(0);#}
|
|
||||||
// {##}
|
|
||||||
// {#str += m_row_end();#}
|
|
||||||
// {#str += m_hr_black();#}
|
|
||||||
str += '<div>';
|
str += '<div>';
|
||||||
str += '<button type="button" class="btn btn-info">Page <span class="badge bg-warning">' + page + '</span></button>';
|
str += '<button type="button" class="btn btn-info">Page <span class="badge bg-warning">' + page + '</span></button>';
|
||||||
str += '</div>';
|
str += '</div>';
|
||||||
str += '<div id="inner_screen_movie" class="row infinite-scroll">';
|
str += '<div id="inner_screen_movie" class="row infinite-scroll">';
|
||||||
for (let i in data.anime_list) {
|
for (let i in data.anime_list) {
|
||||||
|
|
||||||
tmp = '<div class="col-sm-4">';
|
tmp = '<div class="col-6 col-sm-4 col-md-3">';
|
||||||
tmp += '<div class="card">';
|
tmp += '<div class="card">';
|
||||||
tmp += '<img class="lozad" data-src="' + data.anime_list[i].image_link + '" />';
|
tmp += '<img class="lozad" data-src="' + data.anime_list[i].image_link + '" />';
|
||||||
tmp += '<div class="card-body">'
|
tmp += '<div class="card-body">'
|
||||||
@@ -300,6 +294,11 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
@media (min-width: 576px) {
|
||||||
|
.container {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[data-tooltip-text]:hover {
|
[data-tooltip-text]:hover {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -20,6 +20,17 @@
|
|||||||
get: (searchParams, prop) => searchParams.get(prop),
|
get: (searchParams, prop) => searchParams.get(prop),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
function findGetParameter(parameterName) {
|
||||||
|
let result = null,
|
||||||
|
tmp = [];
|
||||||
|
const items = location.search.substr(1).split("&");
|
||||||
|
for (let index = 0; index < items.length; index++) {
|
||||||
|
tmp = items[index].split("=");
|
||||||
|
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
function analyze() {
|
function analyze() {
|
||||||
// e.preventDefault();
|
// e.preventDefault();
|
||||||
const code = document.getElementById("code").value
|
const code = document.getElementById("code").value
|
||||||
@@ -44,7 +55,7 @@
|
|||||||
|
|
||||||
function make_program(data) {
|
function make_program(data) {
|
||||||
current_data = data;
|
current_data = data;
|
||||||
console.log(current_data)
|
console.log("current_data::", current_data)
|
||||||
str = '';
|
str = '';
|
||||||
tmp = '<div class="form-inline">'
|
tmp = '<div class="form-inline">'
|
||||||
tmp += m_button('check_download_btn', '선택 다운로드 추가', []);
|
tmp += m_button('check_download_btn', '선택 다운로드 추가', []);
|
||||||
@@ -134,12 +145,12 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// $('#analysis_btn').unbind("click").bind('click', function (e) {
|
// $('#analysis_btn').unbind("click").bind('click', function (e) {
|
||||||
// e.preventDefault();
|
// e.preventDefault();
|
||||||
@@ -165,7 +176,7 @@
|
|||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function (ret) {
|
success: function (ret) {
|
||||||
if (ret.ret === 'success' && ret.data != null) {
|
if (ret.ret === 'success' && ret.data != null) {
|
||||||
{#console.log(ret.code)#}
|
// {#console.log(ret.code)#}
|
||||||
console.log(ret.data)
|
console.log(ret.data)
|
||||||
make_program(ret.data)
|
make_program(ret.data)
|
||||||
} else {
|
} else {
|
||||||
@@ -215,21 +226,48 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
$("body").on('click', '#check_download_btn', function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
all = $('input[id^="checkbox_"]');
|
||||||
|
let data = [];
|
||||||
|
let idx;
|
||||||
|
for (let i in all) {
|
||||||
|
if (all[i].checked) {
|
||||||
|
idx = parseInt(all[i].id.split('_')[1])
|
||||||
|
data.push(current_data.episode[idx]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (data.length == 0) {
|
||||||
|
$.notify('<strong>선택하세요.</strong>', {type: 'warning'});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
url: '/' + package_name + '/ajax/' + sub + '/add_queue_checked_list',
|
||||||
|
type: "POST",
|
||||||
|
cache: false,
|
||||||
|
data: {data:JSON.stringify(data)},
|
||||||
|
dataType: "json",
|
||||||
|
success: function (data) {
|
||||||
|
$.notify('<strong>백그라운드로 작업을 추가합니다.</strong>', {type: 'success'});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
button.code-button { min-width: 82px!important;}
|
button.code-button { min-width: 82px!important;}
|
||||||
.tooltip {
|
.tooltip {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-tooltip-text]:hover {
|
[data-tooltip-text]:hover {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-tooltip-text]:after {
|
[data-tooltip-text]:after {
|
||||||
-webkit-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
-webkit-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
||||||
-moz-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
-moz-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
||||||
transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
||||||
@@ -261,17 +299,17 @@
|
|||||||
top: 90%;
|
top: 90%;
|
||||||
|
|
||||||
content: attr(data-tooltip-text);
|
content: attr(data-tooltip-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-tooltip-text]:hover:after {
|
[data-tooltip-text]:hover:after {
|
||||||
top: 230%;
|
top: 230%;
|
||||||
left: 0;
|
left: 0;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}[data-tooltip-text]:hover {
|
}[data-tooltip-text]:hover {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-tooltip-text]:after {
|
[data-tooltip-text]:after {
|
||||||
-webkit-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
-webkit-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
||||||
-moz-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
-moz-transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
||||||
transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
transition: bottom .3s ease-in-out, opacity .3s ease-in-out;
|
||||||
@@ -303,28 +341,28 @@
|
|||||||
top: -210%!important;
|
top: -210%!important;
|
||||||
|
|
||||||
content: attr(data-tooltip-text);
|
content: attr(data-tooltip-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-tooltip-text]:hover:after {
|
[data-tooltip-text]:hover:after {
|
||||||
top: 130%;
|
top: 130%;
|
||||||
left: 0;
|
left: 0;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#airing_list {
|
#airing_list {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cut-text {
|
.cut-text {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#screen_movie_list {
|
#screen_movie_list {
|
||||||
margin-top: 10px
|
margin-top: 10px
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user