[How To] Enable MetaTagging within Mylar

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

[How To] Enable MetaTagging within Mylar

Post by evilhero »

Since the commit and merge of (efe447f5170dfcea873b5da735c2fd66d2fe9936), ComicTagger is now included with Mylar to ensure that using ComicTagger in conjuction with Mylar doesn't exceed the new ComicVine API Rate Limiting of 1 api/s and in doing so ultimately receive a ban.

There is no need to enter in the ComicTagger path within Mylar as it's now forced to use the ComicTagger within the lib/comictaggerlib of Mylar. The settings for ComicTagger are within the above directory in a folder labelled as ct_settings and is initialized on first run.

ConfigParser is NO LONGER required for usage of ComicTagger (at least the one that comes with Mylar).

A word of caution too - thus far if you happen to use the unrar freeware binary on your OS that's of the 5.3.x variety - meta-tagging won't currently work in the Master branch (you'll get errors about tagdisp not being valid, or you'll have empty cbz files). The fix has been applied to the development branch, but as of today it has not yet been pushed to Master as I want to make sure it's working first before committing out the changes. Once I know with relative confidence that the issues are addressed, then it get pushed to Master.
User avatar
evilhero
Site Admin
Posts: 2892
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: [HOW TO] Enable MetaTagging within Mylar

Post by evilhero »

OLD METHOD - NO LONGER USED IN MYLAR - KEPT HERE FOR THREAD CONTINUATION
--------------------------------------------------------------------------------------------------------------

MetaTagging comics has now been implemented in the Development Build of Mylar, which uses ComicTagger.

It uses a modified version of the script Mander2600 had written, and aspurtek had modified so it worked abit better on Windows. I did some slight reworking of it, but the heart of it still remains and thus the nod to these 2 gents for their hard work and effort.

Following are the instructions for Windows and Linux installations.

Linux:
1) You need to install ComicTagger from source. Go here and select the newest SOURCE build: http://code.google.com/p/comictagger/downloads/list

2) Extract the Source build from Step 1. From here there are 2 ways you can proceed, as Mylar needs to know where the location of the ComicTagger.py file is and the associated library (comictaggerlib):
  • Preferred Method
    a) Within the extracted folder structure (from Step 2), there is a directory called comictaggerlib. The files within (and all subdirectories) can be copied directly into the identical folder within the /lib/ folder within Mylar (typically it's /mylarroot/lib/comictaggerlib).
    This can be accomplished by:
    • Changing directory (cd'ing) directly into the comictaggerlib directory that was just extracted
    • from the command line doing a : cp -R * /mylarlocation/lib/comictaggerlib/ (where mylarlocation is the location of the mylar root)
  • b) Within the Mylar Configuration GUI, on the Post-Processing tab exists an option to specify the ComicTagger location. This is the FULL path to the location of the ComicTagger.py file. Enter the path without the 'ComicTagger.py' at the end of the path (ie. /usr/bin/ComicTagger/ ). Note that the ComicTagger.py file is located in the directory ABOVE the comictaggerlib directory and needs to retain the directory hiearchy. If it's left blank, it will default to the mylar root directory (which is fine if that's where the necessary files are - step 2a above).
3) ComicTagger requires certain libraries for it to run properly, as such these are needed. Since Mylar already uses BeautifulSoup, the only additional requirement is configparser. To install configparser (notice the lowercase, there is one that's ConfigParser which is the wrong one):

Code: Select all

 
sudo easy_install configparser
4) Within the Mylar Configuration GUI, on the Post-Processing tab, enable MetaTagging (place a checkmark). Save the changes.

5) Restart Mylar and you should have metatagging working with post-processing now.

Windows

1) You need to install ComicTagger. Go here and select the newest WINDOWS build: http://code.google.com/p/comictagger/downloads/list

2) Run the downloaded .exe and proceed through the normal installation steps (it's a straightforward typical install).

3) Within the Mylar Configuration GUI, on the Post-Processing tab exists an option to specify the ComicTagger location. This is the FULL path to the location of the ComicTagger.exe file. Enter the path without the 'ComicTagger.exe' at the end of the path (ie. C:\Program Files (x86)\ComicTagger). If it's left blank, it will default to the Program Files directory depending on the build of WIndows (Program Files (x86) for non-64 bit Windows, Program Files for 64-bit Windows).

4) Within the Mylar Configuration GUI, on the Post-Processing tab, enable MetaTagging (place a checkmark). Save the changes.

5) Restart Mylar and you should have metatagging working with post-processing now.
Locked