mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-12-22 17:29:56 +06:00
Add copyright note to all files
This commit is contained in:
parent
a9519fbd20
commit
ff2d9cf2a7
@ -1,5 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2023 Leseratte10
|
||||||
|
# This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
# ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
#
|
||||||
|
# For more information, see:
|
||||||
|
# https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
|
||||||
|
|
||||||
[ ! -f calibre-plugin/asn1crypto.zip ] && ./package_modules.sh
|
[ ! -f calibre-plugin/asn1crypto.zip ] && ./package_modules.sh
|
||||||
[ ! -f calibre-plugin/oscrypto.zip ] && ./package_modules.sh
|
[ ! -f calibre-plugin/oscrypto.zip ] && ./package_modules.sh
|
||||||
|
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2023 Leseratte10
|
||||||
|
# This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
# ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
#
|
||||||
|
# For more information, see:
|
||||||
|
# https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
|
||||||
rm -rf calibre-plugin-tmp || /bin/true
|
rm -rf calibre-plugin-tmp || /bin/true
|
||||||
|
|
||||||
mkdir calibre-plugin-tmp
|
mkdir calibre-plugin-tmp
|
||||||
|
@ -3,6 +3,39 @@
|
|||||||
|
|
||||||
# Calibre plugin for ACSM files.
|
# Calibre plugin for ACSM files.
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
Formerly known as "DeACSM"
|
||||||
|
|
||||||
|
This software is based on a Python reimplementation of the C++ library
|
||||||
|
"libgourou" by Grégory Soutadé which is under the LGPLv3 or later
|
||||||
|
license (http://indefero.soutade.fr/p/libgourou/).
|
||||||
|
|
||||||
|
I have no idea whether a reimplementation in another language counts
|
||||||
|
as "derivative use", so just in case it does, I'm putting this project
|
||||||
|
under the GPLv3 (which is allowed in the LGPLv3 license) to prevent any
|
||||||
|
licensing issues.
|
||||||
|
|
||||||
|
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/>.
|
||||||
|
|
||||||
|
See the "LICENSE" file for a full copy of the GNU GPL v3.
|
||||||
|
|
||||||
|
'''
|
||||||
|
|
||||||
# Revision history:
|
# Revision history:
|
||||||
# v0.0.1: First version.
|
# v0.0.1: First version.
|
||||||
|
@ -3,6 +3,15 @@
|
|||||||
|
|
||||||
# pyright: reportUndefinedVariable=false
|
# pyright: reportUndefinedVariable=false
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
import os, base64, traceback
|
import os, base64, traceback
|
||||||
from PyQt5.QtGui import QKeySequence
|
from PyQt5.QtGui import QKeySequence
|
||||||
|
|
||||||
|
@ -1,6 +1,16 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Use my own small RSA code so we don't have to include the huge
|
Use my own small RSA code so we don't have to include the huge
|
||||||
python3-rsa just for these small bits.
|
python3-rsa just for these small bits.
|
||||||
|
@ -4,6 +4,15 @@
|
|||||||
# Takes an existing Adobe authorization in the plugin,
|
# Takes an existing Adobe authorization in the plugin,
|
||||||
# writes that into the Windows registry so ADE can read and use it.
|
# writes that into the Windows registry so ADE can read and use it.
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
# In progress ...
|
# In progress ...
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
'''
|
'''
|
||||||
This is an experimental Python version of libgourou.
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# pyright: reportUndefinedVariable=false
|
# pyright: reportUndefinedVariable=false
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
#@@CALIBRE_COMPAT_CODE@@
|
#@@CALIBRE_COMPAT_CODE@@
|
||||||
|
|
||||||
import sys, binascii, traceback
|
import sys, binascii, traceback
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
# Most of the code in this file has been taken from adobekey.pyw written by i♥cabbages
|
# Most of the code in this file has been taken from adobekey.pyw written by i♥cabbages
|
||||||
# adobekey.pyw, version 7.0
|
# adobekey.pyw, version 7.0
|
||||||
# Copyright © 2009-2020 i♥cabbages, Apprentice Harper et al.
|
# Copyright © 2009-2020 i♥cabbages, Apprentice Harper et al.
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Run this tool to download the eBook DER encryption key
|
Run this tool to download the eBook DER encryption key
|
||||||
for a given ADE account from the Adobe server.
|
for a given ADE account from the Adobe server.
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
# GUI for the ACSM plugin.
|
# GUI for the ACSM plugin.
|
||||||
#
|
#
|
||||||
# "create_menu_action_unique" taken from the Quality Check plugin:
|
# "create_menu_action_unique" taken from the Quality Check plugin:
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
# GUI for the ACSM plugin.
|
# GUI for the ACSM plugin.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
# NOTE:
|
# NOTE:
|
||||||
# This file contains the two Windows executables "decrypt_win32.exe" and "decrypt_win64.exe"
|
# This file contains the two Windows executables "decrypt_win32.exe" and "decrypt_win64.exe"
|
||||||
# in base64-encoded form. The source code for these files can be found inside the main.c file
|
# in base64-encoded form. The source code for these files can be found inside the main.c file
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Helper library with code needed for Adobe stuff.
|
Helper library with code needed for Adobe stuff.
|
||||||
'''
|
'''
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
import base64
|
import base64
|
||||||
import locale, platform
|
import locale, platform
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
import base64
|
import base64
|
||||||
import random
|
import random
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
import base64
|
import base64
|
||||||
import os, locale, platform
|
import os, locale, platform
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
import sys, os, zlib, base64, time
|
import sys, os, zlib, base64, time
|
||||||
|
|
||||||
class BackwardReader:
|
class BackwardReader:
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
# Standard Python modules.
|
# Standard Python modules.
|
||||||
import os
|
import os
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
'''
|
'''
|
||||||
This is an experimental Python version of libgourou.
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import getpass, sys
|
import getpass, sys
|
||||||
|
@ -4,6 +4,14 @@
|
|||||||
# Migration plugin from "DeACSM" to "ACSM Input"
|
# Migration plugin from "DeACSM" to "ACSM Input"
|
||||||
# See README.md for details.
|
# See README.md for details.
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
# Revision history:
|
# Revision history:
|
||||||
# v0.0.20: First version of the migration plugin, released under the old name.
|
# v0.0.20: First version of the migration plugin, released under the old name.
|
||||||
|
@ -4,6 +4,15 @@
|
|||||||
# Migration plugin from "DeACSM" to "ACSM Input"
|
# Migration plugin from "DeACSM" to "ACSM Input"
|
||||||
# See README.md for details.
|
# See README.md for details.
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
from calibre.gui2.actions import InterfaceAction
|
from calibre.gui2.actions import InterfaceAction
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2023 Leseratte10
|
||||||
|
# This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
# ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
#
|
||||||
|
# For more information, see:
|
||||||
|
# https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
|
||||||
pushd calibre-plugin
|
pushd calibre-plugin
|
||||||
|
|
||||||
# As the latest oscrypto release (1.3.0) does not yet support OpenSSL3, we'll have to download a forked version ...
|
# As the latest oscrypto release (1.3.0) does not yet support OpenSSL3, we'll have to download a forked version ...
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
'''
|
||||||
|
Copyright (c) 2021-2023 Leseratte10
|
||||||
|
This file is part of the ACSM Input Plugin by Leseratte10
|
||||||
|
ACSM Input Plugin for Calibre / acsm-calibre-plugin
|
||||||
|
|
||||||
|
For more information, see:
|
||||||
|
https://github.com/Leseratte10/acsm-calibre-plugin
|
||||||
|
'''
|
||||||
|
|
||||||
import sys, os
|
import sys, os
|
||||||
sys.path.append("../calibre-plugin")
|
sys.path.append("../calibre-plugin")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user