Skip to content
This repository has been archived by the owner on Feb 5, 2018. It is now read-only.

Crude fix for tvrage outage #1

Closed
wants to merge 3 commits into from
Closed

Crude fix for tvrage outage #1

wants to merge 3 commits into from

Conversation

CoryManson
Copy link

This is a crude fix to get tvrage ID's working again until a proper solution is found. Unfortunately I don't know python so this was just a lot of googling.

I found the trakt API the best solution to use as it has a lot of room to expand and should let us fix the "trending" module. Here's the API docs: http://docs.trakt.apiary.io/#

I've left my API key out, it should probably be a config item. see: trakt-api-key (https://trakt.tv/oauth/applications/new)

I believe this is a temporary fix as any new TV shows that trakt hasn't cached will probably still error. Needs full transition to trakt or tvdb.

Cozza38 added 3 commits June 7, 2014 14:39
Remove localhost reference to fix encryption
Requires trakt API key, uses cached tvrage ID's provided by trakt
@CoryManson
Copy link
Author

I'm not sure why this has conflicts, might be because of my css fix from last year.

@Mirabis
Copy link
Owner

Mirabis commented Sep 15, 2015

Yeh small change in style.css

@JudsonHat
Copy link

Thanks for this! However, I was getting this error when I try to start it.

root@user:~/usntssearch/NZBmegasearch# python /root/usntssearch/NZBmegasearch/mega2.py
Traceback (most recent call last):
  File "/usntssearch/NZBmegasearch/mega2.py", line 26, in <module>
    from ApiModule import ApiResponses
  File "/usntssearch/NZBmegasearch/ApiModule.py", line 280
    parsed_data = {'showtitle': ''}
              ^
IndentationError: expected an indented block

So I added an indented block at line 280. But now I am getting this error. I know almost nothing about python, so I am stuck here.

root@user:~/usntssearch/NZBmegasearch# python /root/usntssearch/NZBmegasearch/mega2.py daemon
Traceback (most recent call last):
  File "/usntssearch/NZBmegasearch/mega2.py", line 26, in <module>
    from ApiModule import ApiResponses
  File "/usntssearch/NZBmegasearch/ApiModule.py", line 287
    return parsed_data
SyntaxError: 'return' outside function

@Mirabis
Copy link
Owner

Mirabis commented Sep 15, 2015

Those are indentation errors, check the spacings / tabs

@JudsonHat
Copy link

From lines 280-287, I deleted the spaces before the code and replaced it with indentations using the tab key. After that, it started up fine.

@CoryManson
Copy link
Author

Sorry bout the indentation errors. Github editor is somewhat lacking.

On Wed, 16 Sep 2015 2:59 am judhat2 notifications@github.com wrote:

From lines 280-287, I deleted the spaces before the code and replaced it
with indentations using the tab key. After that, it started up fine.


Reply to this email directly or view it on GitHub
#1 (comment).

@Mirabis
Copy link
Owner

Mirabis commented Sep 15, 2015

Fumbled a bit, so it doesn't show up as merged on the pull request - but changes are merged.

@Mirabis Mirabis closed this Sep 15, 2015
Mirabis pushed a commit that referenced this pull request Nov 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants