]> xmof Git - DeDRM.git/commitdiff
Merge branch 'nook_url_support'
authorapprenticeharper <apprenticeharper@gmail.com>
Mon, 13 Jul 2015 17:02:48 +0000 (18:02 +0100)
committerapprenticeharper <apprenticeharper@gmail.com>
Mon, 13 Jul 2015 17:02:48 +0000 (18:02 +0100)
1  2 
DeDRM_Macintosh_Application/DeDRM.app.txt
DeDRM_Macintosh_Application/DeDRM.app/Contents/Info.plist
DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/__init__.py
DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/config.py
DeDRM_Windows_Application/DeDRM_App/DeDRM_lib/DeDRM_app.pyw
DeDRM_Windows_Application/DeDRM_App/DeDRM_lib/lib/__init__.py
DeDRM_Windows_Application/DeDRM_App/DeDRM_lib/lib/config.py
DeDRM_calibre_plugin/DeDRM_plugin/__init__.py
DeDRM_calibre_plugin/DeDRM_plugin/config.py
ReadMe_First.txt

index d9c2f5549c94563d9211d9ccf8f6e0cdc4dc3951,01768cd54fe6e1c8bad38ec2756b2a97b6ded6d4..e79ff4e5bee3bc64dad4ae766291cdcad512cbc6
Binary files differ
index 1e1d4cc5727e895702ba1e8f98e8785dac53924a,c17321100c2bfbdc057f8e5ea347165882fc7b58..2beb96d1692c2bf546fb44588ff719950d12fdfa
@@@ -48,7 -48,7 +48,6 @@@
                <key>bundleDividerCollapsed</key>
                <false/>
                <key>bundlePositionOfDivider</key>
-               <real>739</real>
 -              <real>728</real>
                <key>dividerCollapsed</key>
                <false/>
                <key>eventLogLevel</key>
index 0ba33f4eea9f7f43f2fd9d36b8485bb2713cddb4,e0072f145485fb5cabf4ccfdce390202fcdf061e..82329fe5615151ba3f0acc68ccc083044238afb6
@@@ -40,8 -40,9 +40,10 @@@ __docformat__ = 'restructuredtext en
  #   6.2.0 - Support for getting B&N key from nook Study log. Fix for UTF-8 filenames in Adobe ePubs.
  #           Fix for not copying needed files. Fix for getting default Adobe key for PDFs
  #   6.2.1 - Fix for non-ascii Windows user names
+ #   6.2.2 - Added URL method for B&N/nook books
 +#   6.3.0 - Added in Kindle for Android serial number solution
  
  """
  Decrypt DRMed ebooks.
  """
index e27355f9d986871d8a5375cdc0757cb5cf731f13,b3c53af0865a97df42f3b0804bf45a4948268d5e..5f9623c7b9f3b086a17874191ac6ad8b2b53a87c
  #   6.0.5 - Fix typo
  #   6.2.0 - Update to match plugin and AppleScript
  #   6.2.1 - Fix for non-ascii user names
+ #   6.2.2 - Added URL method for B&N/nook books
 +#   6.3.0 - Add in Android support
  
 -
 -__version__ = '6.2.2'
 +__version__ = '6.3.0'
  
  import sys
  import os, os.path
index 0ba33f4eea9f7f43f2fd9d36b8485bb2713cddb4,e0072f145485fb5cabf4ccfdce390202fcdf061e..82329fe5615151ba3f0acc68ccc083044238afb6
@@@ -40,8 -40,9 +40,10 @@@ __docformat__ = 'restructuredtext en
  #   6.2.0 - Support for getting B&N key from nook Study log. Fix for UTF-8 filenames in Adobe ePubs.
  #           Fix for not copying needed files. Fix for getting default Adobe key for PDFs
  #   6.2.1 - Fix for non-ascii Windows user names
+ #   6.2.2 - Added URL method for B&N/nook books
 +#   6.3.0 - Added in Kindle for Android serial number solution
  
  """
  Decrypt DRMed ebooks.
  """
index 432a0ee9f846787d90ca0561becce450c8dcb43b,535dce7dba9fc714cd896cad63b7e7eef99788a5..dcba6eb7233896d9304f78ded51dd1231e979b33
@@@ -109,11 -103,7 +109,8 @@@ class ConfigWidget(QWidget)
          self.ereader_button.setToolTip(_(u"Click to manage keys for eReader ebooks"))
          self.ereader_button.setText(u"eReader ebooks")
          self.ereader_button.clicked.connect(self.ereader_keys)
-         
-         button_layout.addWidget(self.adept_button)
-         button_layout.addWidget(self.kindle_key_button)
          button_layout.addWidget(self.kindle_serial_button)
 +        button_layout.addWidget(self.kindle_android_button)
          button_layout.addWidget(self.bandn_button)
          button_layout.addWidget(self.mobi_button)
          button_layout.addWidget(self.ereader_button)
      def kindle_serials(self):
          d = ManageKeysDialog(self,u"EInk Kindle Serial Number",self.tempdedrmprefs['serials'], AddSerialDialog)
          d.exec_()
-         d = ManageKeysDialog(self,u"Kindle for Andoid",self.tempdedrmprefs['androidserials'], AddAndroidSerialDialog, 'ab')
 +        
 +    def kindle_android_serials(self):
++        d = ManageKeysDialog(self,u"Kindle for Andoid Serial Number",self.tempdedrmprefs['androidserials'], AddAndroidSerialDialog, 'ab')
 +        d.exec_()
  
      def kindle_keys(self):
          if isosx or iswindows:
@@@ -884,51 -859,6 +883,51 @@@ class AddSerialDialog(QDialog)
          QDialog.accept(self)
  
  
-         self.key_ledit.setToolTip(u"Enter a Kindle for Android serial number. These can be found using the androidkindlekey.py script.")
 +class AddAndroidSerialDialog(QDialog):
 +    def __init__(self, parent=None,):
 +        QDialog.__init__(self, parent)
 +        self.parent = parent
 +        self.setWindowTitle(u"{0} {1}: Add New Kindle for Android Serial Number".format(PLUGIN_NAME, PLUGIN_VERSION))
 +        layout = QVBoxLayout(self)
 +        self.setLayout(layout)
 +
 +        data_group_box = QGroupBox(u"", self)
 +        layout.addWidget(data_group_box)
 +        data_group_box_layout = QVBoxLayout()
 +        data_group_box.setLayout(data_group_box_layout)
 +
 +        key_group = QHBoxLayout()
 +        data_group_box_layout.addLayout(key_group)
 +        key_group.addWidget(QLabel(u"Kindle for Android Serial Number:", self))
 +        self.key_ledit = QLineEdit("", self)
++        self.key_ledit.setToolTip(u"Enter a Kindle for ANdroid serial number. These can be found using the androidkindlekey.py script.")
 +        key_group.addWidget(self.key_ledit)
 +        key_label = QLabel(_(''), self)
 +        key_label.setAlignment(Qt.AlignHCenter)
 +        data_group_box_layout.addWidget(key_label)
 +
 +        self.button_box = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
 +        self.button_box.accepted.connect(self.accept)
 +        self.button_box.rejected.connect(self.reject)
 +        layout.addWidget(self.button_box)
 +
 +        self.resize(self.sizeHint())
 +
 +    @property
 +    def key_name(self):
 +        return unicode(self.key_ledit.text()).strip()
 +
 +    @property
 +    def key_value(self):
 +        return unicode(self.key_ledit.text()).strip()
 +
 +    def accept(self):
 +        if len(self.key_name) == 0 or self.key_name.isspace():
 +            errmsg = u"Please enter a Kindle for Android Serial Number or click Cancel in the dialog."
 +            return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION), errmsg, show=True, show_copy_button=False)
 +        QDialog.accept(self)
 +
 +
  class AddPIDDialog(QDialog):
      def __init__(self, parent=None,):
          QDialog.__init__(self, parent)
index 0ba33f4eea9f7f43f2fd9d36b8485bb2713cddb4,e0072f145485fb5cabf4ccfdce390202fcdf061e..82329fe5615151ba3f0acc68ccc083044238afb6
@@@ -40,8 -40,9 +40,10 @@@ __docformat__ = 'restructuredtext en
  #   6.2.0 - Support for getting B&N key from nook Study log. Fix for UTF-8 filenames in Adobe ePubs.
  #           Fix for not copying needed files. Fix for getting default Adobe key for PDFs
  #   6.2.1 - Fix for non-ascii Windows user names
+ #   6.2.2 - Added URL method for B&N/nook books
 +#   6.3.0 - Added in Kindle for Android serial number solution
  
  """
  Decrypt DRMed ebooks.
  """
index 432a0ee9f846787d90ca0561becce450c8dcb43b,535dce7dba9fc714cd896cad63b7e7eef99788a5..dcba6eb7233896d9304f78ded51dd1231e979b33
@@@ -109,11 -103,7 +109,8 @@@ class ConfigWidget(QWidget)
          self.ereader_button.setToolTip(_(u"Click to manage keys for eReader ebooks"))
          self.ereader_button.setText(u"eReader ebooks")
          self.ereader_button.clicked.connect(self.ereader_keys)
-         
-         button_layout.addWidget(self.adept_button)
-         button_layout.addWidget(self.kindle_key_button)
          button_layout.addWidget(self.kindle_serial_button)
 +        button_layout.addWidget(self.kindle_android_button)
          button_layout.addWidget(self.bandn_button)
          button_layout.addWidget(self.mobi_button)
          button_layout.addWidget(self.ereader_button)
      def kindle_serials(self):
          d = ManageKeysDialog(self,u"EInk Kindle Serial Number",self.tempdedrmprefs['serials'], AddSerialDialog)
          d.exec_()
-         d = ManageKeysDialog(self,u"Kindle for Andoid",self.tempdedrmprefs['androidserials'], AddAndroidSerialDialog, 'ab')
 +        
 +    def kindle_android_serials(self):
++        d = ManageKeysDialog(self,u"Kindle for Andoid Serial Number",self.tempdedrmprefs['androidserials'], AddAndroidSerialDialog, 'ab')
 +        d.exec_()
  
      def kindle_keys(self):
          if isosx or iswindows:
@@@ -884,51 -859,6 +883,51 @@@ class AddSerialDialog(QDialog)
          QDialog.accept(self)
  
  
-         self.key_ledit.setToolTip(u"Enter a Kindle for Android serial number. These can be found using the androidkindlekey.py script.")
 +class AddAndroidSerialDialog(QDialog):
 +    def __init__(self, parent=None,):
 +        QDialog.__init__(self, parent)
 +        self.parent = parent
 +        self.setWindowTitle(u"{0} {1}: Add New Kindle for Android Serial Number".format(PLUGIN_NAME, PLUGIN_VERSION))
 +        layout = QVBoxLayout(self)
 +        self.setLayout(layout)
 +
 +        data_group_box = QGroupBox(u"", self)
 +        layout.addWidget(data_group_box)
 +        data_group_box_layout = QVBoxLayout()
 +        data_group_box.setLayout(data_group_box_layout)
 +
 +        key_group = QHBoxLayout()
 +        data_group_box_layout.addLayout(key_group)
 +        key_group.addWidget(QLabel(u"Kindle for Android Serial Number:", self))
 +        self.key_ledit = QLineEdit("", self)
++        self.key_ledit.setToolTip(u"Enter a Kindle for ANdroid serial number. These can be found using the androidkindlekey.py script.")
 +        key_group.addWidget(self.key_ledit)
 +        key_label = QLabel(_(''), self)
 +        key_label.setAlignment(Qt.AlignHCenter)
 +        data_group_box_layout.addWidget(key_label)
 +
 +        self.button_box = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
 +        self.button_box.accepted.connect(self.accept)
 +        self.button_box.rejected.connect(self.reject)
 +        layout.addWidget(self.button_box)
 +
 +        self.resize(self.sizeHint())
 +
 +    @property
 +    def key_name(self):
 +        return unicode(self.key_ledit.text()).strip()
 +
 +    @property
 +    def key_value(self):
 +        return unicode(self.key_ledit.text()).strip()
 +
 +    def accept(self):
 +        if len(self.key_name) == 0 or self.key_name.isspace():
 +            errmsg = u"Please enter a Kindle for Android Serial Number or click Cancel in the dialog."
 +            return error_dialog(None, "{0} {1}".format(PLUGIN_NAME, PLUGIN_VERSION), errmsg, show=True, show_copy_button=False)
 +        QDialog.accept(self)
 +
 +
  class AddPIDDialog(QDialog):
      def __init__(self, parent=None,):
          QDialog.__init__(self, parent)
index 9d3bb88bd59d4d225897d6def7cf3cde96455c71,268f51af743f483af8ab49552d34e108a0248a96..22af920987f4717d874333f7c685ab54cb609460
@@@ -60,14 -60,14 +60,17 @@@ For instructions, see the obok_plugin_R
  
  Other_Tools
  -----------
- This is a folder other tools that may be useful for DRMed ebooks from certain sources or for Linux users. Most users won't need any of these tools.
+ This is a folder of other tools that may be useful for DRMed ebooks from certain sources or for Linux users. Most users won't need any of these tools.
+ DRM_Key_Scripts
+ This folder contains python scripts that create or extract or fetch encryption keyfiles for Barnes and Noble ePubs, Adobe Digital Editions ePubs, Kindle for Mac/PC and Kindle for Android ebooks. These files are needed for the Windows stand-alone DeDRM application.
  
  B&N_Download_Helper
- A Javascript to enable a download button at the B&N website for ebooks that normally won't download to your PC. Another one only for the adventurous.
+ A Javascript to enable a download button at the B&N website for ebooks that normally won't download to your PC. Only for the adventurous.
  
 +DRM_Key_Scripts
 +This folder contains python scripts that create or extract or fetch encryption keyfiles for Barnes and Noble ePubs, Adobe Digital Editions ePubs, Kindle for Mac/PC and Kindle for Android ebooks.
 +
  Kindle_for_Android_Patches
  Definitely only for the adventurous, this folder contains information on how to modify the Kindel for Android app to b able to get a PID for use with the other Kindle tools (DeDRM apps and calibre plugin).