

So it would seem for the time being I need to delete the video.db after playback, to stop it from keep track.
Code: Select all
import xbmc
xbmc.executehttpapi("QueryVideoDatabase(DELETE FROM bookmark)")
Code: Select all
20:43:27 M: 32571392 DEBUG: HttpApi Start command: QueryVideoDatabase paras: QueryVideoDatabase; DELETE FROM bookmark
20:43:27 M: 32559104 ERROR: SQLite: MUST be select SQL!
20:43:27 M: 32559104 ERROR: CVideoDatabase::GetArbitraryQuery failed
Code: Select all
import sqlite3
videodb = xbmc.translatePath("special://database/MyVideos34.db")
connection = sqlite3.connect(videodb)
connection.cursor().execute("DELETE from bookmark")
connection.commit()
connection.close()
Code: Select all
xbmc.playmedia($INFO[ListItem.Path,,_resources\artwork\preview].xmv,1)
&
xbmc.playmedia($INFO[ListItem.Path,,preview].xmv,1)
Code: Select all
######################################################################
# Script by Rocky5
# Used to delete the video.db so videos don't have a resume point.
# (It seems to be broken in XBMC 3.5.3)
######################################################################
import os, fileinput, time
# Sets paths, for profiles names & locations.
CurVideoDB = xbmc.translatePath( 'special://Database/MyVideos34.db' )
# Start markings for the log file.
print "================================================================================"
print "| CleanMyVideos34.db.py loaded."
print "| ------------------------------------------------------------------------------"
if os.path.isfile(CurVideoDB):
time.sleep(1)
os.remove(CurVideoDB)
print "| MyVideos34.db removed."
print "================================================================================"
else:
print "| MyVideos34.db doesn't exist."
print "================================================================================"
Code: Select all
<?xml version="1.0"?>
<video>
<ignoreatstart>15</ignoreatstart>
</video>
Code: Select all
<advancedsettings>
<loglevel hide="false">1</loglevel>
<powersave>false</powersave>
<nodvdrom>true</nodvdrom>
<thumbsize>256x364</thumbsize>
<fanartsize>853x480</fanartsize>
<!-- <bginfoloadermaxthreads>5</bginfoloadermaxthreads> -->
<video>
<ignoreatstart>14400</ignoreatstart>
<!-- <fullscreenonmoviestart>false</fullscreenonmoviestart> -->
</video>
<myprograms>
<trainerpath>Q:\trainers\</trainerpath>
</myprograms>
<pictures>
<screenshotpath>Q:\Screenshots\</screenshotpath>
</pictures>
</advancedsettings>
Code: Select all
import sqlite3, time
videodb = xbmc.translatePath("special://database/MyVideos34.db")
time.sleep(0.5)
connection = sqlite3.connect(videodb)
connection.cursor().execute("DELETE from bookmark")
connection.commit()
connection.close()
Dan Dar3 wrote:Testing with an older older version to see if it works with that, that's great, but I will need more details on the "button press within the programs menu" so I can replicate it.
Code: Select all
<control type="button">
<posx>0</posx>
<posy>0</posy>
<onclick>xbmc.playmedia($INFO[ListItem.Path,,_resources\media\preview].mp4,1)</onclick>
</control>
Never had that issue, does the xbe have a title?Dan Dar3 wrote:Strangest thing, I set it up for one game (add the .xbe and the preview video) come back to the Games and that game disappears from the list - did it twice as I found it odd the first time.
I'll try the meantime XBMC.PlayMedia(media,1) from a Python script, see how that compares.
Code: Select all
import xbmc
xbmc.executebuiltin('XBMC.PlayMedia(X:\\some_path\\some_video.mp4,1)')
Code: Select all
bool CGUIWindowVideoBase::OnResumeShowMenu(CFileItem &item)
{
// we always resume the movie if the user doesn't want us to ask
bool resumeItem = g_guiSettings.GetInt("videoplayer.resumeautomatically") != RESUME_ASK;
CLog::Log(LOGDEBUG,"[DD3] CGUIWindowVideoBase::OnResumeShowMenu() -> videoplayer.resumeautomatically = [%i], resumeItem = [%s]", g_guiSettings.GetInt("videoplayer.resumeautomatically"), ((int) resumeItem ? "true" : "false"));
...
3.2 Prevent watch and resume points from being saved
If you don't want watched or resume points/marks saved automatically then you can use these values. Since it is impossible to playback a video at 101 percent, no mark is made. Watched marks can still be manually recorded using W on a keyboard, the context menu, or an add-on such as Add-on:Trakt. This only prevents new marks from being automatically added and won't remove existing marks in the database. To remove existing marks you can use W on a keyboard or the context menu.
advancedsettings.xmlCode: Select all
<advancedsettings> <video> <playcountminimumpercent>101</playcountminimumpercent> <ignorepercentatend>101</ignorepercentatend> </video> </advancedsettings>