Nepomuk set videos Duration

Database

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

1
Become a Fan
5.7

Available as/for:
Description:
This script will search for all the tv episodes and movies known to Nepomuk on your system and add them the Duration property

requires: ffprobe

this script is an adaptation of the work done by Joerg Ehrichs (missingepisodechecker.py) as part of the webminer

I am new to python and sparql
improvements are very welcome

Enjoy,
Yehiel
Last changelog:

0.2 -- 2013-08-27
updates only videos without duration property

0.1 first release
updates movies and tv episodes


Ratings & Comments

12 Comments

bitcrazy

Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. No duration set on the videos. The videos known to nepomuk on first run were processed, the later not. Python 2.7 PyKDE 4.11 kross 4.11

yehielb

Hi I hope I could help. could you please attach the entire output?

bitcrazy

Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. Error: org.freedesktop.DBus.Error.Failed Cannot set values for abstract property '<nfo:duration>'. select ?e ?ShowName ?SeasonNumer ?EpisodeNumber ?url where {?e a nmm:TVShow.?e nie:url ?url .?e nmm:series ?series .?series nie:title ?ShowName .?e nmm:episodeNumber ?EpisodeNumber .?e nmm:season ?SeasonNumer .optional {?e nfo:duration ?duration}. FILTER (!bound(?duration)) } 0 episodes were updated nepomukcmd query 'select ?e ?Title ?url where {?e a nmm:Movie.?e nie:url ?url .?e nie:title ?Title .optional {?e nfo:duration ?duration}. FILTER (!bound(?duration)) }' Pink Floyd: Live at Pompeii file:///home/ds/MyVideos/Musik/Pink Floyd - Live At Pompeji.avi 3706 ---snip--- ---snap--- 15 movies were updated As you see the script throws 15 errors and later states the update of 15 movies. The log is truncated. At snip snap would be the other 14 movies. All have a number (duration in seconds?) after the path as the example. I have also webminer installed. Maybe this interferes.

yehielb

Hi, my first guess would be that there is a problem with the qdbus call :) it seems that the lines that should be printed before each qdbus call are missing from the output. or maybe you are not running the last version. were there more lines including the url and uri?

yehielb

and yes the duration is in seconds. by the way, was the movies duration update was successful?

bitcrazy

The log above is the whole output. Nothing before, nothing afterwards. The videos were not updated. The videos known to nepomuk on the first run got the duration. The 15 without duration were added after the first run of your script.

bitcrazy

I have qdbus from QT4 4.8.5 installed. I guess it is the latest.

yehielb

I meant the script version.

yehielb

I did not understand what you wrote. >The videos were not updated. so no video was updated? >The videos known to nepomuk on the first run got the duration. does it mean they were updated successfully? >The 15 without duration were added after the first run of your script. the videos were added? were they updated by the script? thanks, YB

bitcrazy

I had some videos on my computer and ran your script version 0.1. The duration was set and is visible in Dolphin. I added more videos, but the duration didn't get updated anymore. I also tried version 0.2 of your script with no effort. The script extracts the duration but fails to write it into the database.

yehielb

what is the difference between the first set of videos to the second set? is the second set known to Nepomuk? are they of type nmm:Movie or nmm:TVShow ? are they available or on a removable device?

yehielb

after a software update I ran into the same error message ...abstract property... reinstalling nepomuk-core solved the problem. please try and tell me if it solved your problem.

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

More Database from yehielb:

nepomuk get videos rating
yehielb
last update date: 12 years ago

Score 5.7

Other Database:

Navicat (MySQL Manager)
navicat
last update date: 17 years ago

Score 4.7

Navicat (MySQL Manager)
navicat
last update date: 17 years ago

Score 4.7

konsultant
umeboshi
last update date: 20 years ago

Score 5.0

[idea] KRestaurantDB
pandarsson
last update date: 17 years ago

Score 5.0

LogMiles
vafada
last update date: 17 years ago

Score 5.0

PorDB3
hwm
last update date: 3 years ago

Score 5.7



System Tags