Resume - gw current test:: File Format: Microsoft Word - View as HTMLNominated for a Cable ACE Award, Best Edited Cable TV Movie. Godfather III has received: Ishi: The Last of His Tribe a screenplay, received: http://www.lunaproductions.com/images/Resume,_awards_GW_2008.docHOME | Hi folks,
As I often watch bits of a movie over several days, I was getting tired of sifting to my directory structure to find that last movie- what was its title again?
I've now made two scripts to solve that- one is mapped to the stop button and saves filename and position, the other one (started from the menu) resumes that file. Simple but effective. Steven Marcus (Actor) - Resumé:: The Last Champion, (Unknown), Jack Rueler, Mixed Blood Theatre *Info. compiled from Steven's Official Resumé, the Internet Movie DataBase, http://www.jillthepill.net/mathnet/steven/smbio.htmHOME |
Hope this will help out others as lazy as I am! ;)
ezd
savelast.py
# SaveLast script 1.0 by ezd
# Saves last played movie name and pos to instantly resume without browsing for the file.
# Add the tag to the full-screen video part of keymap.xml:
# In , part :
# XBMC.RunScript(Q:Scriptssavelast.py)
import xbmc
fn = xbmc.Player().getPlayingFile()
t=xbmc.Player().getTime() Video Resume Sample:: Shavar played one of Oprah Winfrey's sons in this remake of Richard Shavar was cast at the last minute and had only 2 days to memorize his lines for an http://www.tri7entertainment.com/videoresumesample.htmHOME | Mary’s private parts are real - The Howard Stern Show:: After Ronnie speculated that Howard’s movie wife, Mary McCormack’s breasts, as Howard heard from the guys in the back office, with a “funny” resume. http://www.howardstern.com/rundown.hs?d=1212638400HOME |
f = open('Q:\scripts\last.txt', 'w')
f.write(fn+''+str(t))
f.close()
xbmc.Player().stop()
playlast.py
# PlayLast script 1.0 by ezd
# Resumes last played movie instantly from reading savelast's last.txt.
# Many possible ways to start this script, for example by using the
# Submenu Editor within the scripts folder, or mapping a key. RTFM :)
# To resume gently, the -5 below sets the time 5 secs before the stopping time.
import xbmc
f = open('Q:\scripts\last.txt', 'r')
fn,p = f.readline().split('')
f.close()
pl=xbmc.Player()
pl.play(fn)
pl.seekTime(float(p)-5)
player.playselected(position)
Wow, this is great! I'm trying to adapt your code to suit my needs. I want to be able to do this type of thing with audio and playlists. One song, will work, but not the whole playlist.
Is there a function to return the playlist? And when you play a playlist, can you start from a specific location, eg song #6?
Sorry for the late reply, threat notifications went to the wrong address so...
Rockstarr, a movie you select will resume, but XBMC won't select the movie for you :)
At first I was also thinking it'd be best to make this a native XBMC function, but this being in a script has its advantages- perhaps a default link within the skin to the script to hack away at?
For example, my GF and I sometimes watch movies the other isn't interested in, so now I've copied the script 3 times (mapping to 3 different stop buttons) to let us easily resume our own movies as well as the 'together' movie :D.
Also, she doesn't want the Xbox to resume any movies from any movies in the 'Fitness' folder she may play in between watching the movie, so I've created an exception rule which doesn't save said movie positions.
XBMC and scripting/open(ed) platforms are cool. I pity the fool who bought a closed system! ;)
http://home.no.net/thor918/xbmc/xbmc.html
Ideally this should not be a script but a native XBMC function... i.e. button on the Videos screen ("Resume Last")!
I'd think this would be easy for a dev like Kraqh3d to do... since he is one of the masters :D
Hi.
Nice idea.
But isnt there already a xbmc function what is doing this?
Thanks for the link, I used xbmc.Playlist(0).getPosition() to retrieve the position of the song, but when I load that playlist later, how do I start playback at that position? I'm new to python, but I use vbscript a lot. Just trying to learn another language.
Where was the last debate on wednesday with Mccain and Obama?
INSTANCE / WAITING FOR SPRING
|