Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

I need help with patterns for filenames
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
I need help with patterns for filenames
16th Feb, 2013, 06:29 PM
Post: #1
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
I need help with patterns for filenames
By default, XBMC can recognize next filenames patterns:
Code:
foo_[sAA]_[eBB]
foo.AxBB
foo.sAAeBB
foo.Pt.I
But some of my TVshows have different name. Now I use hardlinks with names like s07e04.mkv, but I spend too much time to create it.
Can someone create regexp row (for advancedsettings.xml) for this templates:?
  • Morskie.d'javoly.Smerch.(13).2012.SATRip.mkv
  • 05. Путь к безумию (Method to the Madness).mkv
Both rows dont contain season number (05 for first, 08 for second). Series number for first row is inside round brackets. Series number for second row is first two digits.
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 09:25 PM
Post: #2
bacobart Offline
Registered
Posts: 27
Joined: Jan 2013
Reputation: 2
RE: I need help with patterns for filenames
Where is the season information coming from? Are you using absolute ordering? You should read this: http://wiki.xbmc.org/index.php?title=TV_Shows_(Video_Library)

In any case if the file names lack logic or information (season information), it will be impossible to write a piece of logic (regex) to parse it. XBMC expects the first regexp match to be the season, and the second to return the episode. If the season information isn't in the file or directory name, a regex cannot match it and thus not return it.
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 09:29 PM
Post: #3
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I need help with patterns for filenames
Ok, then is there a way to create description file (like tvshow.nfo) with something like
'filename1'='s07e01'
'filename2'='s07e02'?
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 09:34 PM
Post: #4
bacobart Offline
Registered
Posts: 27
Joined: Jan 2013
Reputation: 2
RE: I need help with patterns for filenames
I'm not sure.

Have you looked at tools like Ember ( http://ember.purplepig.net/projects/embermm/wiki ) to manage your video library?

Read http://www.howtogeek.com/61976/how-to-use-ember-media-manager-to-whip-your-media-collection-into-shape/ on why you would want to use it Wink
Find all posts by this user
Quote this message in a reply
16th Feb, 2013, 11:22 PM
Post: #5
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: I need help with patterns for filenames
What does it do? It renames wrong filenames to correct templates? It is not my way bcoz files from these folders is seeding by transmission.
Looks like hardlinks is my solution...
Find all posts by this user
Quote this message in a reply
6th Mar, 2013, 05:49 AM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: I need help with patterns for filenames
(16th Feb, 2013 11:22 PM)kraleksandr Wrote:  What does it do? It renames wrong filenames to correct templates? It is not my way bcoz files from these folders is seeding by transmission.
Looks like hardlinks is my solution...

there is always a solution. but provide more information about structure of the directories - and, wheter you can put file into dir (.nfo), or is read only etc.

btw: hardlink are limited to one filesystem. if it's shared / cross filesystem, hardlinks won't be created.

btw2: some prefer putting description file into dir (your idea of describing files), some prefer changing general settings and changing patterns. if you have very very large library, adding more and more unique masks could lead to longer library updates and even probably conflicts).

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 22nd May, 2025, 07:12 PM Powered By MyBB, © 2002-2025 MyBB Group.