2011-03-06, 23:54
Hi,
Two questions related to the label ListItem.Duration:
- Since my scrapper doesn't provide the movie duration with a label <duration> with a value in seconds but something like <runtime>1h 33min</runtime>, I don't get the duration from the scrapper anymore (since Dharma) but from the actual video duration. But since those videos are recorded on TV (using Tvheadend), the video file duration is actually longer than the real movie. So I'd like to substract 30min from the ListItem.Duration label. I've looked through the wiki and the forum and I've got the impression that this is not possible, is that correct ? I was hopping that RunScript would do the trick but no.
- Some of my records are not movies and therefore are not scrapped at all. When I view them with the Views Video Files in List view, I get "Title 4.5Go". I don't care much about the file size and I'd rather get the video duration. But if I replace ListItem.Label2 with ListItem.Duration in ViewsFileMode.xml, all I get is a blank. My understanding is that movie duration calculation is done in the background but it's obviously not done for non-scrapped files. Is there is way around that ?
Thanks
Two questions related to the label ListItem.Duration:
- Since my scrapper doesn't provide the movie duration with a label <duration> with a value in seconds but something like <runtime>1h 33min</runtime>, I don't get the duration from the scrapper anymore (since Dharma) but from the actual video duration. But since those videos are recorded on TV (using Tvheadend), the video file duration is actually longer than the real movie. So I'd like to substract 30min from the ListItem.Duration label. I've looked through the wiki and the forum and I've got the impression that this is not possible, is that correct ? I was hopping that RunScript would do the trick but no.
- Some of my records are not movies and therefore are not scrapped at all. When I view them with the Views Video Files in List view, I get "Title 4.5Go". I don't care much about the file size and I'd rather get the video duration. But if I replace ListItem.Label2 with ListItem.Duration in ViewsFileMode.xml, all I get is a blank. My understanding is that movie duration calculation is done in the background but it's obviously not done for non-scrapped files. Is there is way around that ?
Thanks