INTERACT FORUM
Windows => Third Party Plug-ins, Programs, and Skins => Topic started by: ThoBar on March 22, 2009, 08:50:58 pm
-
This plugin is now available for beta testing.... NO LONGER TIMEBOMBED
PLEASE BE CAREFUL - Because it's designed to be flexible, this plugin has the potential to seriously screw up your library!! - and your computer in general if you do wierd stuff with MC
PLEASE BE CAREFUL - if you're not 100% confident with how to use MC's search and expression engines DO NOT USE THIS PLUGIN at this stage.
IF YOU DO NOT HAVE COMPLETE BACKUPS OF YOUR LIBRARY AND DATA - DO NOT USE THIS PLUGIN AT THIS STAGE
This plugin is now available here: http://3lsb.com/public/NE_Setup.exe (version 0.8 )
Known Bugs: v0.8.xx
- Fields with spaces do not work.
- Auto generate rule name doesnt work
- The "field" selector in the ruleset editor is unselectable.
- Non dd/mm/yyyy regional settings may throw an error.
C.
-
Something like auto tagging all files imported from somewhere under V:\TV as [Media Sub Type]="TV Show"? If so, I'd love something like that.
Would be nice if auto-filling some tags was configurable per auto-import folder.
-John
-
I'm about 60% done
Once I figure the best way to fire the rule activation, we'll be ready to go for v0.1
-
OK, an initial test version is ready to go.
I will initially make the plugin available ONLY TO BETA TESTERS.
If you are a member of the Beta team, please send me a PM, or alternatively contact me here.
I will eventually make it open for general use, but not yet.
http://pix01.com/uZ@wgIR
-
Hello I want your program test!
OK, an initial test version is ready to go.
I will initially make the plugin available ONLY TO BETA TESTERS.
If you are a member of the Beta team, please send me a PM, or alternatively contact me here.
I will eventually make it open for general use, but not yet.
http://pix01.com/uZ@wgIR
-
This sounds very useful. What's the status on it's build?
-
Your plugin looks great. Why not a try ;)
-
it's nearly ready for proper testing... life has a habit of interfering with these little projects. Once I know its pretty much stable, I'll re-release it to the beta team, then to the wider user group after that.
It's been a slow process as I've had to learn to code from scratch pretty much, but its been a good learning experience.
C
-
i'm not on the beta team, but i *need* this :) Can't wait to try it out.
-
Hi,
I have a feature suggestion. I am not sure how open you are for suggestions at this point of development, but I'll shoot anyhow...
What I'd like to suggest, is a filename cleaning feature, which will remove all "junk" from a filename and basically come up with a clean movie name.
In Personal Movie Database (http://www.videodb.info/forum_en/index.php?action=forum) , Nostra has basically listed several regular expressions which accomplish exactly this. The expressions can be found under Tools\options\filescanner in PVD...
He has used a freeware library which parses these expressions and spews out clean filenames. The set of expressions is very accurate.
-
I'll try to have a look. Ultimately, I'd like to have a certain level of "plugin-ability" for this plugin... we'll see how it goes and how much interest there is....
FWIW, the current feature list is:
- Individual run intervals for each Rule Set
- Properties from Filename/path (mostly working I think, but could throw some funny results)
- Do not overwrite existing
- Run External Program
- Expressions ( [somefield]=[Album] - [Artist] Some text )
- "Field Matching": e.g. [Bio] = 1st found [Bio] in matching [Artist] (Sorta there on this one, am weighing up some options on which is the best way to go)
The run external program uses the MC expression engine, so can be useful for creating sidecar files etc... with some clever batching/scripting you can do ALOT with this function
-
Confishy, or someone, could you help me get started. I want rules to be able to create the following kinds of rules:
If Album Rating = 0, then tag to 3
If [filename] contains Photos/Brian, then [Source] is Brian
I managed to create them for the previous version of the plugin but cant figure out how to make them with the current interface. Much appreciated.
-
Confishy, or someone, could you help me get started. I want rules to be able to create the following kinds of rules:
If Album Rating = 0, then tag to 3
If [filename] contains Photos/Brian, then [Source] is Brian
I managed to create them for the previous version of the plugin but cant figure out how to make them with the current interface. Much appreciated.
There's a couple of ways to do this.
The first, create a RuleSet to find exactly the files you are looking for using an MC search expression e.g. [Media Type]=[Audio] [Album Gain]=3
Then, in the Rule definition (the subnodes), create a rule that sets the vaule of the Tag to 3 (i.e. using a static rule)
For the second example, [Media Type]=[Image] ([Filename]="Brian" or [Filename]="Photos")
Then, use a Static rule to set [Source] to Brian
Alternatively, and this is the better way:
Set the RuleSet to search for ANY file that you MAY want the rule to apply to, then use a "Fill Fields from Expression" Rule to filter and set the value of the field you want - using the MC expression language.
for example, the RuleSet would look something like.... [Media Type]=[Image]
and the EXPRESSION based RULE would look like (for just Brian)... if(isequal([filename],Brian,7),Brian,[Source])
you could either create a more complex rule for the "OR Photos" or create a second expression rule in the ruleset specifically for "Photos"... which is the way *I would do it....
Essentially a RuleSet is a MC Search string for a given set of Rules to act upon.
-
Thanks.
So I when I set an expression type rule I can leave the "Field" field empty and just paste the expression into the "Value" part, yeah?
Also, I notice that the auto generate rule name doesnt seem to be working, and the "field" selector in the ruleset editor is unselectable.
-
One more question. Will the autotagger wait till a rule has finished before going on the the next one? Because for example, one of my rules (once the tags have been applied to a bunch of files) will make the rules after it non-applicable (and this is desireable).
-
One more thing, the rules are getting wiped for me every time I restart MC. But saving and reloading them is working fine.
-
Thanks.
So I when I set an expression type rule I can leave the "Field" field empty and just paste the expression into the "Value" part, yeah?
Also, I notice that the auto generate rule name doesnt seem to be working, and the "field" selector in the ruleset editor is unselectable.
The field should be the one you want to set, so in the second example you give, it would be Source
One more question. Will the autotagger wait till a rule has finished before going on the the next one? Because for example, one of my rules (once the tags have been applied to a bunch of files) will make the rules after it non-applicable (and this is desireable).
Yes, well, in theory. It fires the requests to MC, which should finish them before the next requests - so far it's always worked that way for me.
One more thing, the rules are getting wiped for me every time I restart MC. But saving and reloading them is working fine.
Is this in MC13 or 14? I'll have a look. Are you also clicking "save as default" not just "save as"?
-
The plugin is now available for general testing .. please see the first post
-
Added Bugs section in first post
-
hi confishy, really interesting stuff here, :)
but i've got some problems when initializing the plugin (first time after start of MC)
(http://www.box.net/shared/static/nfebv7z9g9.png)
after pressing ok 2 times it seems to work correctly
is it something that can be fixed ? :)
-
Lasse_Lus,
Thanks for testing, I should be able to fix it, though I'm surprised you're seeing it... ah... on 2nd glance, it may be because of regional settings... I will think on it.
Thanks for the feedback.
-
FWIW, I get exactly the same error as Lasse_Lus. I don't understand the context, but the path in the last line of the error message seems out of place.
-
FWIW, I get exactly the same error as Lasse_Lus. I don't understand the context, but the path in the last line of the error message seems out of place.
Thats just a reference to where the code is on my machine, meaningless for you, helpful for me :)
-
The latest version has expired on me again.
-
New version is up.
-
New version is up.
Date issue gone :)
next..
"rules are active" is deactivated when MC starts
(http://www.box.net/shared/static/u7c1kbjhp8.png)
..also, some strange stuff regarding the fields..what name do you use ?.....
EDIT: i saw this now - "Fields with spaces do not work." :)
confishy this is really great stuff (http://www.box.net/shared/static/yxrpnaljcn.gif)
-
Date issue gone :)
Good news :)
"rules are active" is deactivated when MC starts
this is by design at this point, while we're in the testing phase
..also, some strange stuff regarding the fields..what name do you use ?.....
EDIT: i saw this now - "Fields with spaces do not work." :)
Yep, they DO work in some places, but not others. I'm trying to sort this out, but have been a bit busy.
confishy this is really great stuff (http://www.box.net/shared/static/yxrpnaljcn.gif)
Thanks! I'm glad you're enjoying it!
C.
-
EDIT: i saw this now - "Fields with spaces do not work." :)
Can you please verify for me where you're seeing the issue with fields with spaces? Is it only in the "Fill from Properties" section?
-
Can you please verify for me where you're seeing the issue with fields with spaces? Is it only in the "Fill from Properties" section?
in my original post this snapshot was included
(http://www.box.net/shared/static/6qpcoj2ekx.png)
..and to sort that out, i have prefix in the displayarea in manage library fields like @,#^
so in this case when i select "@ album" from the dropdownlist it does not work, i have to enter album "manually"
and it works also after restart, but if you have "Fill Fields from Expression" then autotagger has a blank field after restart.
-
regarding the fields, i have alot of custom fields with spaces and prefix, and i dont' want to change them since it's the only way to have some structure with the MC database..
but an easy way to adress this issue is to create a calculated field i.e "autotaggertopalbum" in one word,
with a reference to your choosen field, then the fields come up at the bottom, since the sortorder seems to be on date.
also for other who wants to test, i think the most easy way of creating a query in autotagger is to create a smartlist and copy to AT :)
a little sidenote: when i want to edit a query it takes quite long time, it's no problem but is that because i have a lot of custom fields and quite a lot of data ?
-
.. but if you have "Fill Fields from Expression" then autotagger has a blank field after restart.
even though i choose a field with no spaces, it's blank every time when restart so i guess there is something else
-
Thanks for the feedback. I'll try to have a good look this weekend.
-
MC14 is crashing for me everytime I access it as a client from outside of home. Funny thing is it only happens when autotagger is enabled.
I will investigate more over the next few days and report back.
-
Park,
The timebomb is about to kick in. I'll send you a new version shortly.
C.
-
timebomb has gone off.
-
Hi confishy. Any update? I cant test why it was causing MC to crash til it's working again.
-
Sorry Park (et.al.) I've been flatout lately, so havent even fired up my dev machine.
I'll try to get on to it today.
C.
-
A recent change in MC has meant that this plugin refuses to start.
-
A recent change in MC has meant that this plugin refuses to start.
Strange, I'm using the latest Beta, and it seems to be working fine...
Are you getting any error messages?
-
Yep, my mistake. I upgraded MC to a newer beta and everything works again.
-
This beta is now fully open ... no warranty expressed or implied. No responsibility taken for this version.
-
Is there a test required? Where is the application for it?
-
Is there a test required? Where is the application for it?
Umm, not quite sure what you mean Jim.
People have been "testing" it for me for a while, it has a few known bugs, but none that should be critical (I believe).
by "Application"...
-- The link to the plugin is in the first post,
--but if you mean "where/why would I use it", then some examples may help...
If "movie" is not watched/rated/etc, move it to folder 'x'
If a rating is below '1' move it to "x:\deletable"
If "artist" = <searched criteria artist> then set Biography to the matched Biography
If Composer or Period or Artist or Opus or xxx is blank, then NeedsWork=1
If type=video and name=blank then <fill properties from filename>
If type=video and extension=avi then <run external command to make it mkv>
-
confishy, I am still seeing MC crash after setting "make rules active". It seems to happen a few hours after enabling the rules. I'll try to get a log from MC.
I'm using it with MC14 installed on a WHS machine, with library server running.
-
Park,
it may be something to do with the timer events, I'll try to have a look.
(our previous posts are 5 seconds apart :o)
-
I have some of the following rules:
If unrated, set rating to 3.
If exists in home video folder, set [Type] to Home video, set [Country] to Japan, set [Area] to Tokyo.
If [Camera] is 40D, set [Source] to Brian, set [Country] to Japan, set [Area] to Tokyo.
Most of my files use much of the same metadata. It's easier to have autotagger set everything to a bunch of default metadata, and just make minor adjustments when necessary.
-
If "movie" is not watched/rated/etc, move it to folder 'x'
I'm wondering if its possible to move the folder the file resides in as well whilst preserving the folder name.
I'm looking for a directory mover that can move folders of files depending on the genre of the file.
-
I'm wondering if its possible to move the folder the file resides in as well whilst preserving the folder name.
I'm looking for a directory mover that can move folders of files depending on the genre of the file.
This should definitely be possible using the "Fill Fields from Expression" Rule type. You would set the field to be edited as "Filename (path)", then use an MC compatible expression to set the path.
-
Hey great plugin!! If only MC's auto-import could do this :-)
Is development still active? I've found just one bug where right-clicking a rule set and choosing edit results in an exception. Using MC14 on XP SP2.
Cheers.
-
Is development still active? I've found just one bug where right-clicking a rule set and choosing edit results in an exception. Using MC14 on XP2.
It's currently under 're-development'... I'm trying to take it to a new level, with things like plugins so other people can add their own functions, a new interface etc. This stage will take me some time, but hopefully will result in an awesome feature set. (If things go well it will be rebadged as "MC Automator")
I'll have a quick look at the problem you've found and see if I can fix it...
-
Did you ever fix the issue I was having with it crashing after being left running for a few hours?
-
Not yet, sorry park. I'll try to have a look at both issues tommorrow night.
I've been renovating and extending quite heavily this quarter or so, and haven't been able to dedicate any real time to this project. Hopefully this is about to change.
-
If you're looking for bugs, the fill properties from filename is broken (Only got round to trying to implement something with this tonight).
Two issues-
1. Including a null ( [] ) breaks it entirely.
2. No idea why, but using an [Artist]\[Album] gives me the file path in the artist field.
-Leezer-
-
AutoTagger no longer works after I upgraded to Windows 7. It won't load the default rules. I can load the file manually, but if I try to save it as the default (so it will load on startup), I get the following error...
A Fatal error has occured while creating plugin:
Could not find a part of the path 'C:\Program Files\J River\Media Center 14\Plugins\AutoTagger\AutoTaggerRules.xml'.
=================
The Failure Occured In Class Object: mscorlib
=================
Attempting to Call Method: Void WinIOError(Int32, System.String)
=================
The following Inner Exception was caused:
=================
The Stack Trace Follows:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
at MC_AutoTagger.CodeArea1.writetoxml(List`1 RuleSets, String filename) in D:\Programming\MC_AutoTagger_C#\MC_AutoTagger\MC_Autotagger\CodeFile1.cs:line 304
I note the quoted path is "C:\Program Files\..." instead of "C:\Program Files (x86)\..." Could that be the problem?
-
Rick, thats an interesting problem, and one I've not experienced -- and I'm running w7.
Was your upgrade an upgrade or a reinstall? Try reinstalling the plugin as a first step - if you havent already.
The path isn't hard coded to use 'C:\Program Files\J River\Media Center 14\Plugins\AutoTagger\AutoTaggerRules.xml' rather '<jrmc location>\Plugins\AutoTagger\AutoTaggerRules.xml'
-
Yes, "interesting" indeed. It turns out I somehow got two MC installations after my Windows 7 upgrade. I can only guess I somehow installed it in Vista in C:\Program Files rather than C:\Program Files (x86), then the upgrade moved MC, but left the plugins behind. To make things more confusing, PvdImport didn't mind this, but AutoTagger could no longer find it's rules file. Moving the plugin files fixed AutoTagger, but broke PvdImport. That was a nightmare to fix—and I'm still not sure what was wrong or how I fixed it—but that's a story for a different thread. ;)
-
I understand this plugin is in "re-development," but I'd very much appreciate a minor update so the "Rules are Active" setting is saved and applied automatically at startup. Having to set this at every startup and/or use "Run enabled rules now" defeats the purpose of the plugin—it's not automatic! Thanks.
-
If anyone can help me with an expression, I've played around with them before but nothing too complicated; I would like to automatically set the Media Sub Type field from the Filepath, so if the path is something like
D:\RecordedTV\Dexter\Dexter - Season 1\Dexter - 1x02 - Crocodile.mkv
It could pick up if it contained RecordedTV or Movies for instance and fill in the Media Sub Type field, Any help would be much appreciated!
Thanks
-
i try to guide you :)
1) Create a playlist group named autotagger
2) add your "first" smartlist there w. the example [Filename (path)]="RecordedTV" [Media Sub Type]=[]
3) name smartlist "autotaggTVshows"
4) Add a set in plugin autotagger with searchstring playlist=autotaggTVshows then OK
5) Add rule under the "set"
Name:updated MST for TV
Type:Field Data
Static Rule: Field = Media Sub Type
Vaule= TV Show
OK
6) Press preview to see the assumed files to be touched
7) Save AS
8) Run Rule
note: with the creation of playlistgroup and smartlist in there makes it much easier to administrate, so in this case set also selection to a few files before proceeding
also as always BACKUP your data before you run the rules
-
note2: the rules are active will be reset after each shutdown of MC...i myself prefer to run them manually every now and then :)
-
the rules are active will be reset after each shutdown of MC
Yes, it's really just a SemiautoTagger. :'(
-
Ahh I understand a bit better, so you need to use the smart lists to filter your video files and then use AutoTagger to do the rest?
Thanks,
-J
-
Ahh I understand a bit better, so you need to use the smart lists to filter your video files and then use AutoTagger to do the rest?
Thanks,
-J
you dont have to use smartlists...only if you want to simplyfi things..you can also write the query directly in the "set" within autotagger
-
Howdy. I know this plugin is currently being reworked by confishy, but in the meantime I was wondering if anyone has got their head wrapped around the "matching" functionality in the currently available version?
- "Field Matching": e.g. [Bio] = 1st found [Bio] in matching [Artist]
I'm actually looking to do exactly as described by confishy in this quoted example, amongst other things. So, can anyone explain how to actually set that example up? It's just not quite obvious from the UI. The preview tells me I've got the empty bio search string correct, but I'm not sure what to put in the Tag Manipulation rule portion. The only option for "match fields" is "fields to match" and neither [artist] or [bio] seem to do anything. I assume that I'm missing something.
Thanks for any tips, JB
-
Howdy. I know this plugin is currently being reworked by confishy, but in the meantime I was wondering if anyone has got their head wrapped around the "matching" functionality in the currently available version?I'm actually looking to do exactly as described by confishy in this quoted example, amongst other things. So, can anyone explain how to actually set that example up? It's just not quite obvious from the UI. The preview tells me I've got the empty bio search string correct, but I'm not sure what to put in the Tag Manipulation rule portion. The only option for "match fields" is "fields to match" and neither [artist] or [bio] seem to do anything. I assume that I'm missing something.
Thanks for any tips, JB
This works by populating the field [Bio] with whatever the tool finds in a "matching field" (in this case [Artist]).
- If a matching [Artist] field contains no [Bio] info, then it there will be no matching done, as there is no [Bio].
- If there is no matching [Artist] (i.e. you're looking for the same Artist) there will be no match to gather the [Bio] info from.
In summary if [Artist]1==[Artist]2 then [Bio]1 == (1st non-blank)[Bio]2
...except I dont have the code handy, so I cant check that it is in fact using (1st non-blank)
-
Looks good but is this still being worked on?
I have played with it and seems like it will do what I'm looking for except that every time MC is restarted the "Rules are Active" box is unchecked and it obviously doesn't function till I re-check it. Kinda defeats my reason for using it.
-
The link at the begining of this thread is dead. Is there another location to get this plugin? Or is there another way to auto tagging in Media Center?
Alex
-
I uploaded the version I had sitting on my hard drive to here: http://www.mediafire.com/?1a2vdimawo0ait0 (http://www.mediafire.com/?1a2vdimawo0ait0)
As of now this plugin is the only way to do any powerful auto-tagging within MC. There is the Right-Click > Lookup Track Info From Online Database option, but I don't personally recommend using that (it just does basic Artist/Album/Genre type metadata).
confishy: Has AutoTagger been officially abandoned? If so, would you be willing to open-source the code (not that I'd necessarily have the time/knowledge to help it along any right now)?
Also, if you'd rather I not leave the installer available online, let me know and I'll take it down ASAP.
-Jon
-
Jon,
Thanks for the upload.
Alex