Comics-Comic Vine

All your suggestions, requests and ideas for future development
Post Reply
cosmos1012
Posts: 5
Joined: 04 May 2015, 05:59

Comics-Comic Vine

Post by cosmos1012 »

Just to warn you I'm a noob at all this. If this dosen't make sense I'm sorry.

I am a comic lover and am anal about organizing my digital comics, and I hope I am not the only one.

My goal is to find a program like filebot that renames comics and puts them in folders like /publisher/series/file.cbr. Like how the automated media center is set up. Which would be awesome for my weekly comics.

The best program I stumbled across is comic tagger ( https://code.google.com/p/comictagger/) which scrapes all the info from comic vine and can rename it. The downside is the process is long and not very efficient for me. There are other programs like comicrack or Yac reader but those are for creating a catalog and dosen't really help me.

It would be helpful for me and hopefuly others if Filebot had a comic feature that used comic vine.

As a Side not. Is it possible to use comic tagger as a renamer for the comic and create a folder structure with filebot to put the comics in like /publisher/series/file.cbr. I don't think it is possible without comicvine but thought I would ask.
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Comics-Comic Vine

Post by rednoah »

Does MediaInfo read comic book tags?

Does <other program> create some sort of tag that filebot can read? e.g. xattr

Does <other program> rename files using a standard filename syntax that can easily be parsed? e.g. series - number - title

Do you have some way of getting tags for a given file?

If any of these answers is yes then you can use FileBot's generic rename system.

@see viewtopic.php?f=3&t=2072
:idea: Please read the FAQ and How to Request Help.
cosmos1012
Posts: 5
Joined: 04 May 2015, 05:59

Re: Comics-Comic Vine

Post by cosmos1012 »

Thank you for the quick reply

1) Does MediaInfo read comic book tags?


-No I do not believe so. I think mediainfo is only tv/movie data.

2)Does <other program> create some sort of tag that filebot can read? e.g. xattr

-It creates a comicinfo.xml file in the rar compressed file. Can filebot work with a .xml file.
The file contains this info

Code: Select all

<?xml version="1.0"?>

<ComicInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<Title>Ask Not...</Title>

<Series>The American Way</Series>

<Number>1</Number>

<Summary>Critically acclaimed novelist and screenwriter John Ridley (THE Authority: Human on the Inside, Three Kings) and artist Georges Jeanty (Majestic) offer a unique vision of U.S. history in THE AMERICAN WAY, a thrilling 8-issue miniseries! The 1960s were a decade of incredible change for America. It was a time of innocence. It was a time of optimism. It was a time of heroes. In the early '40s, the United States government hatched a plan to create the Civil Defense Corps: a group of 'super-heroes' who could fight alien invasions, evil super-powered beings, and communism, all in front of an adoring public, courtesy of television. But that dream was far from reality by the '60s, as new C.D.C. Marketing Director Wesley Catham is about to discover. How far will America go to protect its dream of a better tomorrow? The Civil Defense Corps (CDC) are America's super-team. Inspiring in Americans hope, justice and the American Way in the face of the growing communist threat, they are invincible and have overcome all challenges. Like very other American, Wesley Catham is astounded by the feats of these supermen and women. A salesmen in a failing company, his strength lies in the fact that he believes in his product. When he's offered a job to work for the Federal Disaster Assistance Administration (FDAA) to market the CDC, Wesley is of course excited. What a better honor than to spread the exploits of the greatest heroes of his generation? While he knew that the CDC was government sponsored, he didn't know that they were also government manufactured. While the heroes are indeed superpowered and real, everything else is fabricated. Battles, villains, origins. All tested and marketed to convince the people that America is strong. Wesley, with a wife and soon to be child, grudgingly takes the job. The CDC are still an inspiration. But when one of the CDC dies from a heart attack live on national television during a staged attack, everything changes.</Summary>

<Notes>Tagged with ComicTagger 1.1.15-beta using info from Comic Vine on 2015-05-04 12:37:23. [Issue ID 106759]</Notes>

<Year>2006</Year>

<Month>04</Month>

<Day>01</Day>

<Writer>John Ridley</Writer>

<Penciller>Georges Jeanty</Penciller>

<Inker>Karl Story</Inker>

<Colorist>Randy Mayor</Colorist>

<Letterer>Pat Brosseau</Letterer>

<CoverArtist>Georges Jeanty, Karl Story, Randy Mayor</CoverArtist>

<Editor>Ben Abernathy, Kristy Quinn</Editor>

<Publisher>Wildstorm</Publisher>

<Web>http://www.comicvine.com/the-american-way-1-ask-not/4000-106759/</Web>

<PageCount>24</PageCount>

<Characters>Amber Waves, Captain, Chet Sloan, East Coast Intellectual, Fidel Castro, Freya, John F. Kennedy, Mighty Delta, Mr Lucky, Muscle Shoals, Nikita Khrushchev, Old Glory, Ole Miss, Pharos, Red Terror, Robert Kennedy, Secret Agent, Southern Cross, Tannis Darling, Wanderer, Wesley Chatham, X-15, Yuri Gagarin</Characters>

<Teams>Civil Defense Corps, Southern Defense Corps</Teams>

<Locations>Atlanta, Washington D.C.</Locations>

</ComicInfo>
3) Does <other program> rename files using a standard filename syntax that can easily be parsed? e.g. series - number - title

-I can rename the files with any of these parameters

%series%
%issue%
%volume%
%issuecount%
%year%
%month%
%month_name%
%publisher%
%title%
%genre%
%language_code%
%criticalrating%
%alternateseries%
%alternatenumber%
%alternatecount%
%imprint%
%format%
%maturityrating%
%storyarc%
%seriesgroup%
%scaninfo%

I would rename a file to look something like this

%publisher% %series% #%issue% (%year%)
Wildstorm The American Way #001 (2006)

4) Do you have some way of getting tags for a given file?
I believe the .xml file is the only tag i can get.



If I did get filebot to make my folder structure how would I use the generic format.

For example I use something like

Code: Select all

filebot -script fn:amc --output "/path/to/output" --log-file amc.log --action copy -non-strict "/path/to/input" --def excludeList=amc.txt --def "seriesFormat=X:/TV/{n}/{'S'+s}/{fn}"
for my auto tv organizer

How can i use a similar script for my comics?
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Comics-Comic Vine

Post by rednoah »

Assuming a file structure like this and valid XML:

Code: Select all

x.comic
x.xml
And a format like this:

Code: Select all

{xml = new XmlSlurper().parse(folder/fn+'.xml'); [xml.Series, xml.Number, xml.Series, xml.Title].join('/')}
You'll get output paths like for x.comic (referencing x.xml data)

Code: Select all

The American Way/1/The American Way/Ask Not...
EDIT:
The generic renaming feature is a hidden feature in the GUI, and not available in the CLI.

Though you can make it work via scripting. See amc script unsorted behaviour:

Code: Select all

rename(map: unsortedFiles.collectEntries{ original ->
	[original, new File(_args.output, getMediaInfo(file: original, format: format.unsorted))]
})
You'll probably need to adjust everything to your exact environment, but the tools you need should be all there. ;)
:idea: Please read the FAQ and How to Request Help.
cosmos1012
Posts: 5
Joined: 04 May 2015, 05:59

Re: Comics-Comic Vine

Post by cosmos1012 »

I have been fiddling with it for hours now and can get it to work the way I want it.

My issues

1) I get that if you put a .xml and .comic (.cbr-winrar .cbz-zip) in a folder with the same name. Then format it like you suggest it works.

My problem is that my comic.xml file is in a winrar(.cbr) or zip (.cbz) compressed file with all the individual picture scans. To make matters worst the .xml file is always named comicinfo.xml.

Is there any way to format it so it grabs the comicinfo.xml from in the winrar or zip archive and uses it.

2) I havent really got to the AMC Script.

But do I add the part you provided with the .xml format to a script like amc.groovy

Or do I use what you provided to create my own script that points to the .xml format.

--I'm sorry you might have to walk me through this with baby steps. If you don't want to bother with it I understand. I just have to find my way around it.
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Comics-Comic Vine

Post by rednoah »

1)
No. For .zip files it's possible but quite a bit more code, and for .rar files it's not possible because rar.

2)
That's up to you. That snipped just shows you how you can use getMediaInfo() to apply a format to a file and get a String for the new location back.
:idea: Please read the FAQ and How to Request Help.
cosmos1012
Posts: 5
Joined: 04 May 2015, 05:59

Re: Comics-Comic Vine

Post by cosmos1012 »

So I've made some progress on this in between life and leisure.

Since I can't pull out the .xml from a compressed file and name it after my file yet. (which is a different issue for a different program). I have found away to pull out what I need from the file name.

For Example: In The American Way #001 (2006) -Wildstorm.cbr

I can set the format to

Code: Select all

{fn.after('-')} 
To grab the publisher (Wildstorm)

and

Code: Select all

{fn.before('#')}
To grab the series name (In the American Way)


My Next step is to set it up with AMC.

I guess when you say generic renaming is not in the CLI do you mean it won't read files that are not video or music files?

I tried running the AMC script with the arguments

Code: Select all

--def unsorted=y  
and/or

Code: Select all

--def "unsortedFormat=comics/{fn.after('-')}/{fn.before('#')}/{fn}"
and the CMD said the file was excluded
or exclude In The American Way #001 (2006) -Wildstorm.cbr

So This lead me to believe that the script couldn't deal with files other than videos and music. Which I think is what you said.

So I looked at

Code: Select all

rename(map: unsortedFiles.collectEntries{ original ->
   [original, new File(_args.output, getMediaInfo(file: original, format: format.unsorted))]
})
and with my limited scripting knowledge had no idea what to do.

I looked through the rest of the AMC script for anything having to do with exclude or unsorted or a restriction of only certain files and found this.

Code: Select all

def unsorted  = tryQuietly{ unsorted.toBoolean() }
and looked in the Scripts and automation section and saw it was for File verification.

Is this what I need to mess with? How do I get the scipt to read any file or .cbr and .cbz files?
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Comics-Comic Vine

Post by rednoah »

I'm not quite sure why you want to integrate that feature into the amc script. You already need to do some manual processing beforehand. You might as well do the renaming in the GUI. Or write a new minimal script that takes care of those particular files only.

The Groovy script could then also take care of extracting files from archives and preparing things so that the format can access everything easily.

Groovy is a great language for scripting simple things, and this shouldn't be more than a few lines, but getting started without any background might be a bit tricky. ;)
:idea: Please read the FAQ and How to Request Help.
cosmos1012
Posts: 5
Joined: 04 May 2015, 05:59

Re: Comics-Comic Vine

Post by cosmos1012 »

Yeah. I might have to put this on the back burner until i have more knowledge about scripting. Thank you for all your reply's and help. I can not stress to you how important it is.

What I was trying to do was automate my my comic library like how your wonderful program has automated my video library.

Comics come out every Wednesday. So I download them to a download folder. And then manually move them to a folder based on publisher/seriesname. Which can take a bit time with say 150 comics every week.

I don't think the GUI makes folder structures or can be scheduled in the task manger so thats why I wanted to do it with the CLI.

Since filebot dosent have a comicvine scraper i used the open source program comictagger https://code.google.com/p/comictagger/ which has a strong CLI. I thought was neat because it not only matched the name to find the comics but cover art as well to ensure it was the correct comic info. My downfall came with the .xml file because I couldn't get it to put the .xml file in the folder with the comic and have it named after the comic file.

Then to just automate it with filebot using the .xml files as info and putting the comic files in the correct folders automatically would have been awesome.

And Task it all to run every Wednesday in intervals of 2 hours. I wouldn't have to do anything other then double check the folders occasionally.

I am taking my first programing classes next semester so maybe I'll figure it soon. But Thanks for all your help. If i do figure it out I will surely tell you.
rs1001
Posts: 2
Joined: 06 Mar 2016, 03:54

Re: Comics-Comic Vine

Post by rs1001 »

Bump on this one as a feature request. Seeing this added onto filebot would certainly make me a happy bunny indeed.

I'm not sure what the state of Comic book databases are at current, (ie; accuracy, how soon they're updated), but I am sure that scene has improved, I use comicbookdb.com as my reference point if I'm doing a mass of Story Arc folders.

This said, The plausibility may still be a tad out of convenient reach, however I think the naming conventions on most procured digital comics has been fairly consistent over the years.

Eg;
Alpha & Omega - Cry Wolf 001 (2010) (Digital) (DR & Quinch-Empire).cbr
which I rename to
/Alpha & Omega (2010)/Alpha & Omega - Cry Wolf 001 (2010).cbr

The Variables tend to be (Group1 & Groups) (# Covers) (Digital) and if it's a Trade Paper Back a TPB is tacked on (which I leave)

----
Food for thought, perhaps.
//RS
Telecart
Posts: 4
Joined: 22 May 2016, 22:16

Re: Comics-Comic Vine

Post by Telecart »

cosmos1012 wrote:Yeah. I might have to put this on the back burner until i have more knowledge about scripting. Thank you for all your reply's and help. I can not stress to you how important it is.

What I was trying to do was automate my my comic library like how your wonderful program has automated my video library.

Comics come out every Wednesday. So I download them to a download folder. And then manually move them to a folder based on publisher/seriesname. Which can take a bit time with say 150 comics every week.

I don't think the GUI makes folder structures or can be scheduled in the task manger so thats why I wanted to do it with the CLI.

Since filebot dosent have a comicvine scraper i used the open source program comictagger https://code.google.com/p/comictagger/ which has a strong CLI. I thought was neat because it not only matched the name to find the comics but cover art as well to ensure it was the correct comic info. My downfall came with the .xml file because I couldn't get it to put the .xml file in the folder with the comic and have it named after the comic file.

Then to just automate it with filebot using the .xml files as info and putting the comic files in the correct folders automatically would have been awesome.

And Task it all to run every Wednesday in intervals of 2 hours. I wouldn't have to do anything other then double check the folders occasionally.

I am taking my first programing classes next semester so maybe I'll figure it soon. But Thanks for all your help. If i do figure it out I will surely tell you.
Wondering if you ever got it to work?
Would definitely find this useful too!
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Comics-Comic Vine

Post by rednoah »

Not planned. Especially any kind of integration with online services.

The existing Generic File mode should get you pretty far though. Depending on how files are named, it might be all you need:
viewtopic.php?f=3&t=2072
:idea: Please read the FAQ and How to Request Help.
Post Reply