Page 3 of 3

Re: Wanted List Backup and Restore

Posted: 11 Jul 2015 03:34
by sixshooterz
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!

Re: Wanted List Backup and Restore

Posted: 15 Jul 2015 14:52
by clinton.hall
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.

Re: Wanted List Backup and Restore

Posted: 21 Nov 2015 17:27
by knifetotheeye
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?

Re: Wanted List Backup and Restore

Posted: 09 Jan 2016 16:46
by realhiphop
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?

Re: Wanted List Backup and Restore

Posted: 12 Feb 2016 05:34
by jaxjexjox
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.

Re: Wanted List Backup and Restore

Posted: 12 Feb 2016 07:09
by jaxjexjox
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

Re: Wanted List Backup and Restore

Posted: 19 Feb 2016 02:16
by jaxjexjox
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.

Re: Wanted List Backup and Restore

Posted: 12 Mar 2017 15:26
by jaysel
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

Re: Wanted List Backup and Restore

Posted: 10 Nov 2017 18:34
by repulse
Could this work on synology DS215j ? And if yes, how could i achieve this ?