-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans  .- Knowledge Base  . 

Nepomuk set videos Duration

   0.2  

KDE Database

Score 53%
Nepomuk set videos Duration
zoom


Depends on  KDE 4.x
Downloads:  116
Submitted:  Aug 19 2013
Updated:  Aug 27 2013

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




Changelog:

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

0.1 first release
updates movies and tv episodes




LicenseLGPL
Source(setduration.py)
Send to a friend
Subscribe
Other  Apps  from yehielb
Report inappropriate content



-
.

 Fault

 
 by bitcrazy on: Aug 28 2013
 
Score 50%

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


If men could get pregnant, abortion would be a sacrament.
Reply to this

-

 Re: Fault

 
 by yehielb on: Aug 29 2013
 
Score 50%

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


YB
Reply to this

-
.

 Re: Re: Fault

 
 by bitcrazy on: Aug 29 2013
 
Score 50%

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.


If men could get pregnant, abortion would be a sacrament.
Reply to this

-

 Re: Re: Re: Fault

 
 by yehielb on: Aug 29 2013
 
Score 50%

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?


YB
Reply to this

-

 Re: Re: Re: Fault

 
 by yehielb on: Aug 29 2013
 
Score 50%

and yes the duration is in seconds.

by the way, was the movies duration update was successful?


YB
Reply to this

-
.

 Re: no duration inserted

 
 by bitcrazy on: Aug 30 2013
 
Score 50%

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.


If men could get pregnant, abortion would be a sacrament.
Reply to this

-
.

 Re: no duration inserted

 
 by bitcrazy on: Aug 30 2013
 
Score 50%

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


If men could get pregnant, abortion would be a sacrament.
Reply to this

-

 Re: Re: no duration inserted

 
 by yehielb on: Sep 1 2013
 
Score 50%

I meant the script version.


YB

-

 Re: Re: no duration inserted

 
 by yehielb on: Sep 1 2013
 
Score 50%

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


YB
Reply to this

-
.

 Re: no duration inserted

 
 by bitcrazy on: Sep 1 2013
 
Score 50%

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.


If men could get pregnant, abortion would be a sacrament.

-

 Re: Re: Re: no duration inserted

 
 by yehielb on: Sep 1 2013
 
Score 50%

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?


YB

-

 Re: Re: Re: Fault

 
 by yehielb on: Sep 24 2013
 
Score 50%

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.


YB
Reply to this

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.