XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Scraper Development

Scraper Development Developers forum for meta data scrapers. Scraper developers only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-04-04, 04:08   #1
snoxbox
Fan
 
Join Date: Aug 2005
Posts: 451
snoxbox is on a distinguished road
Default Music Video Scraper - Need Help

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>
I assumed this would give me any sequence of characters followed by a \ then any other sequence of characters, but it doesn't pick up anything.

So, does anyone know:
1. If what I want to do will work?
2. The syntax of the regexp?
snoxbox is offline   Reply With Quote
Old 2008-04-04, 09:02   #2
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

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.
spiff is offline   Reply With Quote
Old 2008-04-05, 06:30   #3
snoxbox
Fan
 
Join Date: Aug 2005
Posts: 451
snoxbox is on a distinguished road
Default

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
snoxbox is offline   Reply With Quote
Old 2008-04-05, 14:15   #4
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

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.
spiff is offline   Reply With Quote
Old 2008-04-07, 01:34   #5
snoxbox
Fan
 
Join Date: Aug 2005
Posts: 451
snoxbox is on a distinguished road
Default

Thanks spiff! Can't wait to try it out
snoxbox is offline   Reply With Quote
Old 2008-04-09, 20:56   #6
sho
Team-XBMC Wiki Content Manager
 
sho's Avatar
 
Join Date: May 2004
Posts: 2,950
sho is on a distinguished road
Default

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.


sho is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:46.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project