help setting up mylar ?

Information and Tutorials on features in Mylar and how to use it
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: help setting up mylar ?

Post by evilhero »

cojoMan wrote:Well, I cannot postprocess the folder after adding the comic via TM - I am using TM, so I could find the name the comic should have in order to be processed correctly :p That's why the convoluted process - but hey, as you said, it works.

As far as my install - I did it on a windows machine (the current working one), by pulling it via github...looking back on the command I used, I think it was git clone https://github.com/evilhero/mylar -b development c:\Mylar so I guess that answers that question :)
Now, for updating, I know there should be a command I could run, but I periodically get a browser notification in Mylar, like you are 2 commits behind, update now, and I always do, and then restart - so I guess I should be fine...
Honestly, you should be able to post-process the folder after adding the comic - I mean, that's what it's main purpose is after all ;) I would have to guess, being that you're on the development build and recent, that it's due to the naming of the files themselves that's causing the problem during the manual post-processing which is then forcing you to take the extra steps.

Can I ask what you have your file(s) named as - well, just a few of the ones that aren't being manually post-processed after adding the series via TM? If I knew what the naming scheme was, I'd like to try and get Mylar to account for as many varied naming conventions as possible - and this sounds like there's something along that line going on here..
cojoMan
Posts: 28
Joined: Sun Jan 18, 2015 7:56 am

Re: help setting up mylar ?

Post by cojoMan »

not with my station at the moment, but will give a few examples when I get home
Mylar Version: development -- git build 09f6e32d603a818f3cba9d4f6161049457602eb0
Windows 10 x64, SabNZBd
cojoMan
Posts: 28
Joined: Sun Jan 18, 2015 7:56 am

Re: help setting up mylar ?

Post by cojoMan »

hey, so I just moved my structured folders into another directory, but now going to individual series, under edit settings, the directory location remained the one from the old path...
updated all relevant paths in config.ini - so where would I need to update the path so all the comics would know to pick it up ?...

thanks

edit :
also, now that I have finished importing my comics, and changed the status to resume, I keep having errors like these : mylar send a comic to sabnzb, the download finishes, then the status is failed, no par2 sets, BUT when I go to sabnzb complete folder, I find the comic there, all fine and completed, non errors and all....

here's the log :

Code: Select all

2016-05-02 00:27:18	INFO	[UPDATER] Updated the status (Snatched) complete for Hinterkind Issue: 8
2016-05-02 00:27:18	INFO	[UPDATER] Updating status to snatched
2016-05-02 00:27:18	INFO	setting the nzbid for this download grabbed by OZnzb (newznab) in the nzblog to : 332a1e614516a74a5feb5e7dc23aecbd
2016-05-02 00:27:18	INFO	Successfully sent nzb file to SABnzbd
2016-05-02 00:27:17	INFO	Found Hinterkind (2014) issue: 8 using OZnzb (newznab)
2016-05-02 00:27:17	INFO	[FAILED_DOWNLOAD_CHECKER] Successfully marked this download as Good for downloadable content
2016-05-02 00:27:17	INFO	prov : OZnzb (newznab)[332a1e614516a74a5feb5e7dc23aecbd]
2016-05-02 00:27:16	INFO	Download URL: https://api.oznzb.com/api?apikey=REDACTED&t=get&id=332a1e614516a74a5feb5e7dc23aecbd [VerifySSL:True]
2016-05-02 00:26:14	INFO	pausing for 60 seconds before continuing to avoid hammering
2016-05-02 00:26:14	INFO	Shhh be very quiet...I'm looking for Hinterkind issue: 8 (2014) using OZnzb (newznab)

and from sbnzb :

Code: Select all

   
Script exit code is 1	02/05/2016 00:11	 
Search
  349 MB Today 480 MB This Month 5.1 GB Total
×
Hinterkind.008.2014.digital.Son.of.Ultron-Empire
Loading config from C:\Program Files (x86)\SABnzbd\scripts\autoProcessComics.cfg
Opening URL: http://localhost:8090/post_process?nzb_name=Hinterkind.008.2014.digital.Son.of.Ultron-Empire&failed=0&apc_version=1.0&comicrn_version=1.01&nzb_folder=C%3A%5CUsers%5CcojoMan%5CDownloads%5Cnzbs%5Ccomplete%5CHinterkind.008.2014.digital.Son.of.Ultron-Empire
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>

    <title>401 Unauthorized</title>

    <style type="text/css">

    #powered_by {

        margin-top: 20px;

        border-top: 2px solid black;

        font-style: italic;

    }



    #traceback {

        color: red;

    }

    </style>

</head>

    <body>

        <h2>401 Unauthorized</h2>

        <p>You are not authorized to access that resource</p>

        <pre id="traceback">Traceback (most recent call last):

  File "C:\Mylar\cherrypy\_cprequest.py", line 642, in respond

    self.hooks.run('before_handler')

  File "C:\Mylar\cherrypy\_cprequest.py", line 97, in run

    hook()

  File "C:\Mylar\cherrypy\_cprequest.py", line 57, in __call__

    return self.callback(**self.kwargs)

  File "C:\Mylar\cherrypy\lib\auth_basic.py", line 86, in basic_auth

    raise cherrypy.HTTPError(401, "You are not authorized to access that resource")

HTTPError: (401, 'You are not authorized to access that resource')

</pre>

    <div id="powered_by">

    <span>Powered by <a href="http://www.cherrypy.org">CherryPy 3.2.0</a></span>

    </div>

    </body>

</html>
Mylar Version: development -- git build 09f6e32d603a818f3cba9d4f6161049457602eb0
Windows 10 x64, SabNZBd
Destron
Posts: 60
Joined: Thu Apr 28, 2016 7:37 pm

Re: help setting up mylar ?

Post by Destron »

Make sure you've put your Mylar username and password in the autoProcessComics.cfg file (in the sabnzbd scripts folder)
cojoMan
Posts: 28
Joined: Sun Jan 18, 2015 7:56 am

Re: help setting up mylar ?

Post by cojoMan »

what about migrating my comics to another location ?
as I've said - after changing all path in settings and config.ini, individual comics still point, and check - the previous location...

I have found this :

Code: Select all

The FOLLOWING options should ONLY be used/enabled when required. Doing so when Mylar is running will cause serious problems.

The 3 following options are all required when changing the Comic Location path for an entire DB (watchlist)

locmove (0/1): Enabling this option will force Mylar to initiate a Comic Location path update for all series in your watchlist upon the next startup. This option is required for newcom_dir and ffnewcom_dir to work.

newcom_dir: The full path to the new Comic Location that is desired. 

fftonewcom_dir (0/1): If enabled, will apply the Folder Format string to each and every series in your watchlist as it's re-generating the new Comic Location paths within Mylar. This will work for multi-levelled Format strings as well (ie. if you have $Publisher/$Series-($Year) as your Folder Format string). This DOES NOT create the folders - it merely changes the location within Mylar, which is necessary for post-processing, file-checking, etc.

and set them like this :

Code: Select all

locmove = 1
newcom_dir = C:\Users\cojoMan\Downloads\downloads_mylar
fftonewcom_dir = 0
but then I get this :

Code: Select all

02-May-2016 08:40:27 - INFO :: MAIN : Setting ComicTagger settings default path to : C:\Mylar\lib\comictaggerlib\ct_settings
02-May-2016 08:40:27 - INFO :: MAIN : ComicTagger settings location exists.
02-May-2016 08:40:27 - INFO :: MAIN : Performing a one-time mass update to Comic Location
02-May-2016 08:40:27 - INFO :: MAIN : [DIRECTORY-CHECK] Found comic directory: C:\Users\cojoMan\Downloads\downloads_mylar
02-May-2016 08:40:27 - ERROR :: MAIN : Uncaught exception: Traceback (most recent call last):
  File "C:\Mylar\Mylar.py", line 268, in <module>
    main()
  File "C:\Mylar\Mylar.py", line 201, in main
    mylar.initialize()
  File "C:\Mylar\mylar\__init__.py", line 1108, in initialize
    helpers.updateComicLocation()
  File "C:\Mylar\mylar\helpers.py", line 820, in updateComicLocation
    com_done = re.sub('\*', os.sep, comlocation).strip()
  File "C:\Python27\lib\re.py", line 155, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "C:\Python27\lib\re.py", line 286, in _subx
    template = _compile_repl(template, pattern)
  File "C:\Python27\lib\re.py", line 273, in _compile_repl
    raise error, v # invalid expression
error: bogus escape (end of line)

Traceback (most recent call last):
  File "C:\Mylar\Mylar.py", line 268, in <module>
    main()
  File "C:\Mylar\Mylar.py", line 201, in main
    mylar.initialize()
  File "C:\Mylar\mylar\__init__.py", line 1108, in initialize
    helpers.updateComicLocation()
  File "C:\Mylar\mylar\helpers.py", line 820, in updateComicLocation
    com_done = re.sub('\*', os.sep, comlocation).strip()
  File "C:\Python27\lib\re.py", line 155, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "C:\Python27\lib\re.py", line 286, in _subx
    template = _compile_repl(template, pattern)
  File "C:\Python27\lib\re.py", line 273, in _compile_repl
    raise error, v # invalid expression
sre_constants.error: bogus escape (end of line)

folder and file permissions are set to 777...
Mylar Version: development -- git build 09f6e32d603a818f3cba9d4f6161049457602eb0
Windows 10 x64, SabNZBd
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: help setting up mylar ?

Post by evilhero »

@cojoMan: You need to make sure your Comic Location (destination_dir in the config.ini) is set to the original path you had. The Comic Location has to point to the old location, and the newcom_dir has to be the new location (obviously), so that Mylar knows what to replace with what. If you give it the same name, it won't be able to match up properly.

Not sure if that's related to the error you're getting, but change the above, and try the process again - but start mylar in debugging mode just so you can see if something else is happening besides just that error...
cojoMan
Posts: 28
Joined: Sun Jan 18, 2015 7:56 am

Re: help setting up mylar ?

Post by cojoMan »

hey, so..how do I start Mylar in debugging mode ?
Mylar Version: development -- git build 09f6e32d603a818f3cba9d4f6161049457602eb0
Windows 10 x64, SabNZBd
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: help setting up mylar ?

Post by evilhero »

For verbose logging on startup, when you're in the root of mylar :

Code: Select all

python Mylar.py -v
cojoMan
Posts: 28
Joined: Sun Jan 18, 2015 7:56 am

Re: help setting up mylar ?

Post by cojoMan »

I had the previus directory set as you've said, and the new one at a different location, but same result so far...

Code: Select all

03-May-2016 21:51:44 - INFO :: MAIN : Branch detected & set to : development
03-May-2016 21:51:44 - INFO :: MAIN : [DB Module] Loading : sqlite3 as the database module to use.
03-May-2016 21:51:44 - INFO :: MAIN : [Cache Check] Cache directory currently set to : C:\Mylar\cache/
03-May-2016 21:51:44 - INFO :: MAIN : Checking to see if the database has all tables....
03-May-2016 21:51:45 - INFO :: MAIN : Populating Base Exception listings into Mylar....
03-May-2016 21:51:45 - INFO :: MAIN : Populating Custom Exception listings into Mylar....
03-May-2016 21:51:45 - INFO :: MAIN : Ensuring DB integrity - Removing all Erroneous Comics (ie. named None)
03-May-2016 21:51:45 - INFO :: MAIN : Correcting Null entries that make the main page break on startup.
03-May-2016 21:51:45 - INFO :: MAIN : Retrieving latest version information from github
03-May-2016 21:51:45 - DEBUG :: MAIN : Comparing currently installed version [09f6e32d603a818f3cba9d4f6161049457602eb0] with latest github version [09f6e32d603a818f3cba9d4f6161049457602eb0]
03-May-2016 21:51:46 - INFO :: MAIN : Mylar is up to date
03-May-2016 21:51:46 - INFO :: MAIN : Setting ComicTagger settings default path to : c:\Mylar\lib\comictaggerlib\ct_settings
03-May-2016 21:51:46 - INFO :: MAIN : ComicTagger settings location exists.
03-May-2016 21:51:46 - INFO :: MAIN : Performing a one-time mass update to Comic Location
03-May-2016 21:51:46 - INFO :: MAIN : [DIRECTORY-CHECK] Found comic directory: C:\Users\cojoMan\Downloads\downloads_mylar
03-May-2016 21:51:46 - ERROR :: MAIN : Uncaught exception: Traceback (most recent call last):
  File "c:\Mylar\Mylar.py", line 268, in <module>
    main()
  File "c:\Mylar\Mylar.py", line 201, in main
    mylar.initialize()
  File "c:\Mylar\mylar\__init__.py", line 1108, in initialize
    helpers.updateComicLocation()
  File "c:\Mylar\mylar\helpers.py", line 820, in updateComicLocation
    com_done = re.sub('\*', os.sep, comlocation).strip()
  File "C:\Python27\lib\re.py", line 155, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "C:\Python27\lib\re.py", line 286, in _subx
    template = _compile_repl(template, pattern)
  File "C:\Python27\lib\re.py", line 273, in _compile_repl
    raise error, v # invalid expression
error: bogus escape (end of line)

Traceback (most recent call last):
  File "c:\Mylar\Mylar.py", line 268, in <module>
    main()
  File "c:\Mylar\Mylar.py", line 201, in main
    mylar.initialize()
  File "c:\Mylar\mylar\__init__.py", line 1108, in initialize
    helpers.updateComicLocation()
  File "c:\Mylar\mylar\helpers.py", line 820, in updateComicLocation
    com_done = re.sub('\*', os.sep, comlocation).strip()
  File "C:\Python27\lib\re.py", line 155, in sub
    return _compile(pattern, flags).sub(repl, string, count)
  File "C:\Python27\lib\re.py", line 286, in _subx
    template = _compile_repl(template, pattern)
  File "C:\Python27\lib\re.py", line 273, in _compile_repl
    raise error, v # invalid expression
sre_constants.error: bogus escape (end of line)
Mylar Version: development -- git build 09f6e32d603a818f3cba9d4f6161049457602eb0
Windows 10 x64, SabNZBd
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: help setting up mylar ?

Post by evilhero »

That actually looks like it's having problems with the replacement character for slashes I used...weird.

I changed it to a unique double character (hopefully will work) - expect it in next development build
Post Reply