Wanted List Backup and Restore

So you made CouchPotato even more awsome?
sixshooterz
Junior Member
Posts: 1
Joined: 11 Jul 2015 03:29
Status: Offline

Re: Wanted List Backup and Restore

Postby sixshooterz » 11 Jul 2015 03:34

Is this still actively developed? I just tried to restore my movie list and got this error:

Code: Select all

Opening URL: http://localhost:5050/api/[mykey]/manage.update/?full=1
Opening URL: http://localhost:5050/api/[mykey]/manage.progress
Managed scan completed
Traceback (most recent call last):
  File "./wanted.py", line 180, in <module>
    process(args.type, args.file)
  File "./wanted.py", line 145, in process
    movie_list = json.load(f)
  File "/usr/lib/python2.7/json/__init__.py", line 278, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


My list is just IMDB IDs. I've made sure to remove any erroneous spaces and blank lines.

Currently running the latest version of CP: 69825F9D

Thanks!

User avatar
clinton.hall
Moderator
Posts: 9224
Joined: 28 Jun 2012 12:55
Has thanked: 94 times
Been thanked: 465 times
Contact:
Status: Offline

Re: Wanted List Backup and Restore

Postby clinton.hall » 15 Jul 2015 14:52

ah.. can you try editing the list to look like the following:

Code: Select all

[
["tt2250912",""],
["tt5657577",""],
.....
["tt5757775",""]
]


There were changes made to this project to get better information backed up, but in doing so it no longer takes a "plain" list of imdb ids... these need to be formatted.

knifetotheeye
Junior Member
Posts: 5
Joined: 25 Dec 2014 21:31
Status: Offline

Re: Wanted List Backup and Restore

Postby knifetotheeye » 21 Nov 2015 17:27

Hi,

I'm trying to run this script (Have tried a couple of different ways) and am getting the same result each time, any ideas?

D:\shares\Downloads>wanted.py --type backup --cfg C:\Documents and Settings\Nick
\Application Data\CouchPotato/settings.conf --file /volume1/Public/backup.tx
File "D:\shares\Downloads\wanted.py", line 4
<!DOCTYPE html>
^
SyntaxError: invalid syntax

D:\shares\Downloads>c:\python27\python.exe "D:\shares\Downloads\wanted.py" backu
p "D:\shares\Downloads\wanted backup.txt"
File "D:\shares\Downloads\wanted.py", line 4
<!DOCTYPE html>
^

If I open the script the problem on line 4 seems to be 'class':

<html lang="en" class=" is-copy-enabled">

Any ideas?

realhiphop
Junior Member
Posts: 1
Joined: 09 Jan 2016 16:14
Status: Offline

Re: Wanted List Backup and Restore

Postby realhiphop » 09 Jan 2016 16:46

I'm having a tough time understanding how to do this. I'm on a Mac. I downloaded the zip to my Downloads folder and unzipped there. I updated the API.

Do I do the rest through terminal? What exactly am I supposed to type in there?

jaxjexjox
Member
Posts: 62
Joined: 22 Jul 2014 12:09
Status: Offline

Re: Wanted List Backup and Restore

Postby jaxjexjox » 12 Feb 2016 05:34

Frustrating to now have to run this a third time because CP murdered itself. I wish there was a consistent way of making it back itself up.

jaxjexjox
Member
Posts: 62
Joined: 22 Jul 2014 12:09
Status: Offline

Re: Wanted List Backup and Restore

Postby jaxjexjox » 12 Feb 2016 07:09

I've made a cron job to fix this from stinging me again.
/mnt/ARRAY/data/backup/couchpotato/./wanted.py --type backup --cfg /mnt/ARRAY/data/backup/couchpotato/couch.cfg --file /mnt/ARRAY/data/backup/couchpotato/backup.txt

jaxjexjox
Member
Posts: 62
Joined: 22 Jul 2014 12:09
Status: Offline

Re: Wanted List Backup and Restore

Postby jaxjexjox » 19 Feb 2016 02:16

The script is very slightly broken.
I have now noticed near a week later that while about 90% of the movies exported and imported ok, at least 5 or 10 films of 100 were NOT imported correctly (wrong film)
Has anyone else seen this behaviour? I imagine it's a pretty obscure issue.

jaysel
Junior Member
Posts: 17
Joined: 12 Nov 2014 11:39
Status: Offline

Re: Wanted List Backup and Restore

Postby jaysel » 12 Mar 2017 15:26

I just used this, it worked great.
I thought it hadn't worked, but a restart of CP saw my Wanted list back n all its glory

repulse
Junior Member
Posts: 1
Joined: 10 Nov 2017 18:32
Status: Offline

Re: Wanted List Backup and Restore

Postby repulse » 10 Nov 2017 18:34

Could this work on synology DS215j ? And if yes, how could i achieve this ?


Return to “External Tools”