![]() |
|
|||||||
| Scraper Development Developers forum for meta data scrapers. Scraper developers only! Not for posting feature requests, bugs, or end-user support requests! |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Fan
Join Date: Aug 2005
Posts: 451
![]() |
Let me start by stating I have absolutely no idea what I'm doing with regexp's. I read some online guides and used an app called regexpbuddy, but I'm not getting the results I want.
All I want to get in the database is artist and title. Now, the nfo scraper will pick it up the filename is in the format Artist - title.ext . But I have my music videos in a folder named after artist, and the filename just the song title, i.e. Artist1 -Title1 -Title2 Artist2 =Title1 There's 2 reasons for this, both due to the length of the filename. 1. My music videos are stored on the xbox hard drive. 2. I want to see the song title on the screen, not scrolling. (plus I have 1000+ clips) Take the example Queens Of The Stone Age - Everybody Knows That You're Insane Now that's a long title, both to display on the screen and get around the fatx char limit. (I'm only mentioning all this because I think it might be a useful feature/change for other users in the same boat). So, I tried to adjust the regexp in the musicvideos.xml scraper. As all of my music videos are in artist\title , and I only care about these 2 fields, I thought the following would work, but no go: Code:
<RegExp input="$$1" output="<?xml version="1.0" encoding="UTF-8"?><musicvideo><artist>\1</artist><title>\2</title><year>\3</year></musicvideo>" dest="3"> <expression>([.]*)[\\/]([.]*)</expression> </RegExp> So, does anyone know: 1. If what I want to do will work? 2. The syntax of the regexp? |
|
|
|
|
|
#2 |
|
Grumpy Bastard Developer
Join Date: Nov 2003
Posts: 7,715
![]() |
currently mvids are only fed the filename
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
|
|
|
|
|
#3 |
|
Fan
Join Date: Aug 2005
Posts: 451
![]() |
Any chance this could be changed to allow for folder/filename spiff? I find it hard to believe I am the only one who has their music videos separated by artist and named the way I do, but I have not seen anyone else comment about this so maybe so.
Anyway, it'd be great if this could be implemented, but I understand it'll only get done if a dev thinks it's a good idea |
|
|
|
|
|
#4 |
|
Grumpy Bastard Developer
Join Date: Nov 2003
Posts: 7,715
![]() |
rev 12492 holds your answer
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
|
|
|
|
|
#5 |
|
Fan
Join Date: Aug 2005
Posts: 451
![]() |
Thanks spiff! Can't wait to try it out
|
|
|
|
|
|
#6 |
|
Team-XBMC Wiki Content Manager
Join Date: May 2004
Posts: 2,950
![]() |
Just realized.. although there probably is a better way to report than here.
There is no view that shows artist - title. (Except a quite recent change to recently added)
__________________
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|