jaw20 / Crunchyroll-XML-Decoder

GNU General Public License v2.0
37 stars 14 forks source link

Keeps asking for a force subtitles parameter in the settings #10

Closed vampjoseph closed 7 years ago

vampjoseph commented 7 years ago

At this point after months of trying to configure python to work with the base toolkit and your update to make it work with the site again, I seem to have hit yet another wall that I can't figure out.

I've been testing the current config of python that I've been able to cobble together (I know pretty well nothing about coding much less coding in python and have been getting by on manuals and forum threads) and I've gotten to the point where it's whining about the downloaders settings file which is great news for me as it means I'm heading in the right direction. The first problem was an easy fix, it wanted a second language setting so I added one to the .ini. Now it wants a force subtitles setting which I've added but it wants parameters which I don't know or don't have and it won't accept a boolean search (i.e.: forcesubtitle = English)

This is the error message without the setting:

Traceback (most recent call last): File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\ultimate.py", line 376, in ultimate(page_url, seasonnum, epnum) File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\ultimate.py", line 221, in ultimate lang1, lang2, forcesub, forceusa, localizecookies, vquality, onlymainsub = altfuncs.config() File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\altfuncs.py", line 32, in config forcesub = configr.getboolean('SETTINGS', 'forcesubtitle') File "C:\Python27\lib\ConfigParser.py", line 368, in getboolean v = self.get(section, option) File "C:\Python27\lib\ConfigParser.py", line 618, in get raise NoOptionError(option, section) ConfigParser.NoOptionError: No option 'forcesubtitle' in section: 'SETTINGS' An error has occured. Please check "error.log" for the affected page url.

This is with the setting added but without a parameter:

Traceback (most recent call last): File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\ultimate.py", line 376, in ultimate(page_url, seasonnum, epnum) File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\ultimate.py", line 221, in ultimate lang1, lang2, forcesub, forceusa, localizecookies, vquality, onlymainsub = altfuncs.config() File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\altfuncs.py", line 17, in config configr.read('settings.ini') File "C:\Python27\lib\ConfigParser.py", line 305, in read self._read(fp, filename) File "C:\Python27\lib\ConfigParser.py", line 546, in _read raise e ConfigParser.ParsingError: File contains parsing errors: settings.ini

An error has occured. Please check "error.log" for the affected page url.

Thanks for reading down to this point and I apologize for hitting you with a wall of text. I look forward to a response

jaw20 commented 7 years ago

At this point after months of trying to configure python

I would try and reinstall a clean copy of python first. Make sure that you uninstall the current python version you have and install 2.7.9. Then follow the instructions on the readme. If you still get the error we can go from there.

vampjoseph commented 7 years ago

ok did a fresh install of python 2.7.9 with the proper versions of lxml, etc. Now it's bugging me for forceusa parameters. Here is the error message:

Traceback (most recent call last): File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\ultimate.py", l ine 376, in ultimate(page_url, seasonnum, epnum) File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\ultimate.py", l ine 213, in ultimate page_url = altfuncs.vidurl(page_url, False, False) File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\altfuncs.py", l ine 119, in vidurl res = gethtml(url) File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder\altfuncs.py", l ine 64, in gethtml if not forceusa and localizecookies: NameError: global name 'forceusa' is not defined An error has occured. Please check "error.log" for the affected page url.

jaw20 commented 7 years ago

Can you please post the error.log file for me?

Also, just making sure, you are on the latest version right?

vampjoseph commented 7 years ago

I have been all over the filetree of this folder and haven't found anything that even remotely resembles an error.log. Even after a file search I only found one belonging to another program. I just updated to the latest version of the decoder (had no issues after I figured out the settings) and now I'm getting a new error:

Traceback (most recent call last): File "F:\Crunchyroll Downloader Toolkit DX\crunchy-xml-decoder.py", line 9, in

import functtest File "crunchy-xml-decoder\functtest.py", line 98 except KeyError: ^ SyntaxError: invalid syntax Press any key to continue . . . This error is after a fresh install of python 2.7.9 and the relevant libraries that worked last time. Also I have no backup of the previous version to restore to.
jono123 commented 7 years ago

There is an error on syntax in functtest.py to check cfscrape are installed or not. I delete that function and manual install the cfscrape package.

But login failed. It seem cannot bypass the cloudfare.

jaw20 commented 7 years ago

@jono123 Please make a new ticket, as this isn't related to this issue.

On Feb 7, 2017 10:27 AM, "jono123" notifications@github.com wrote:

There is an error on syntax to check cfscrape are installed or not. I delete that function and manual install the cfscrape package.

But login failed. It seem cannot bypass the cloudfare.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/jaw20/Crunchyroll-XML-Decoder/issues/10#issuecomment-278033898, or mute the thread https://github.com/notifications/unsubscribe-auth/AE0jc4P13-H6dHZJG9_f9-LDcduOwKYtks5raI1YgaJpZM4LqEw8 .