Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
246d7673
Commit
246d7673
authored
Feb 27, 2019
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected file header with copyright information
parent
eef4787b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
31 deletions
+9
-31
uploader.py
cps/uploader.py
+9
-31
No files found.
cps/uploader.py
View file @
246d7673
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# This file is part of the Calibre-Web (https://github.com/janeczku/calibre-web)
# This file is part of the Calibre-Web (https://github.com/janeczku/calibre-web)
# Copyright (C) 2012-2019 lemmsh
,
OzzieIsaacs
# Copyright (C) 2012-2019 lemmsh
cervinko Kennyl matthazinski
OzzieIsaacs
#
#
# This program is free software: you can redistribute it and/or modify
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
...
@@ -25,41 +25,11 @@ import logging
...
@@ -25,41 +25,11 @@ import logging
import
os
import
os
from
flask_babel
import
gettext
as
_
from
flask_babel
import
gettext
as
_
import
comic
import
comic
BookMeta
=
namedtuple
(
'BookMeta'
,
'file_path, extension, title, author, cover, description, tags, series, series_id, languages'
)
"""
:rtype: BookMeta
"""
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the Calibre-Web (https://github.com/janeczku/calibre-web)
# Copyright (C) 2016-2019 lemmsh cervinko Kennyl matthazinski OzzieIsaacs
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
try
:
try
:
from
lxml.etree
import
LXML_VERSION
as
lxmlversion
from
lxml.etree
import
LXML_VERSION
as
lxmlversion
except
ImportError
:
except
ImportError
:
lxmlversion
=
None
lxmlversion
=
None
__author__
=
'lemmsh'
logger
=
logging
.
getLogger
(
"book_formats"
)
logger
=
logging
.
getLogger
(
"book_formats"
)
try
:
try
:
...
@@ -92,6 +62,14 @@ except ImportError as e:
...
@@ -92,6 +62,14 @@ except ImportError as e:
logger
.
warning
(
'cannot import fb2, extracting fb2 metadata will not work:
%
s'
,
e
)
logger
.
warning
(
'cannot import fb2, extracting fb2 metadata will not work:
%
s'
,
e
)
use_fb2_meta
=
False
use_fb2_meta
=
False
__author__
=
'lemmsh'
BookMeta
=
namedtuple
(
'BookMeta'
,
'file_path, extension, title, author, cover, description, tags, series, series_id, languages'
)
"""
:rtype: BookMeta
"""
def
process
(
tmp_file_path
,
original_file_name
,
original_file_extension
):
def
process
(
tmp_file_path
,
original_file_name
,
original_file_extension
):
meta
=
None
meta
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment