You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summarylang="en_GB">Periodically sets the resume point of videos and can automatically resume last played video if Kodi crashes.</summary>
10
+
<summarylang="sv_SE">Ställer in återuppspelningspunkten för videor med jämna mellanrum och kan automatiskt återuppspela den senast spelade videon om Kodi kraschar.</summary>
10
11
<descriptionlang="en_GB">
11
12
Runs as a service and will periodically update the resume point while videos are playing, so you can re-start from where you were in the event of a crash. It can also automatically resume a video if Kodi was shutdown while playing it. See setting to configure how often the resume point is set, and whether to automatically resume.
12
13
</description>
14
+
<descriptionlang="sv_SE">
15
+
Körs som en tjänst och uppdaterar regelbundet återuppspelningspunkten vid spelning medan videor spelas upp, så att du kan starta om från där du var i händelse av ett krascher. Den kan också automatiskt återuppspela en video om Kodi stängdes av vid spelning. Se inställningarna för att konfigurera hur ofta återuppspelningspunkten ska ställas in och om den ska återuppspelas automatiskt.
msgid"Periodically sets the resume point while videos are playing and optionally automatically resumes last played video if XBMC crashes or is shutdown during playback."
23
+
msgstr"Ställer regelbundet in återupptagningspunkten medan videor spelas upp och återupptar automatiskt den senast spelade videon om XBMC kraschar eller stängs av under uppspelning."
24
+
25
+
msgctxt"Addon Description"
26
+
msgid"This addon runs in the background as a service and will periodically update the resume point while videos are playing. It will also automatically resume a video if XBMC was shutdown while playing it. See setting to configure how often the resume point is set and whether to automatically resume."
27
+
msgstr"Detta tillägg körs i bakgrunden som en tjänst och kommer regelbundet att uppdatera återuppspelningspunkten medan videor spelas upp. Det kommer också automatiskt att återuppta en video om XBMC stängdes av medan den spelades. Se Inställning för att konfigurera hur ofta återuppspelningspunkten ska ställas in och om den ska återupptas automatiskt."
28
+
29
+
msgctxt"#32000"
30
+
msgid"Resumer"
31
+
msgstr"Återuppspelare"
32
+
33
+
msgctxt"#32001"
34
+
msgid"Save resume point every X seconds"
35
+
msgstr"Spara återuppspelningspunkt var X:e sekund"
36
+
37
+
msgctxt"#32002"
38
+
msgid"Auto-Resume playback at startup"
39
+
msgstr"Återuppta uppspelningen automatiskt vid start"
40
+
41
+
msgctxt"#32003"
42
+
msgid"Auto-Play a random video if nothing is playing"
43
+
msgstr"Spela automatiskt upp en slumpmässig video om inget spelas"
Start the addon: initialize logging and global state, configure Kodi monitor and player, attempt to resume or start playback, then run the main event loop until an abort is requested.
15
+
16
+
This function:
17
+
- Starts the logger and creates the global Store.
18
+
- Instantiates and stores Kodi event monitor and player objects.
19
+
- Attempts to resume previous playback; if nothing resumed and no video is playing, triggers autoplay when enabled.
20
+
- Enters a loop that waits for an abort request and exits when one is detected.
21
+
- Stops the logger before returning.
16
22
"""
17
-
footprints()
23
+
Logger.start()
18
24
# load settings and create the store for our globals
Logger.info(f"Not updating resume point as current percent played ({percent_played}) is above Kodi's ignorepercentatend setting of {Store.ignore_percent_at_end}")
173
+
return
147
174
148
175
# OK, BELOW HERE, we're probably going to set a resume point
Automatically resume a video after a crash, if one was playing...
232
-
233
-
:return:
258
+
Attempt to resume playback after a previous shutdown if resuming is enabled and saved resume data exist.
259
+
260
+
If configured and valid resume data are present, the player will start the saved file and seek to the stored resume time; on any failure or if no resume data are applicable, no playback is resumed.
261
+
262
+
Returns:
263
+
True if playback was resumed and seeked to the saved position, False otherwise.
Selects a random video file path from the Kodi library.
308
+
309
+
Chooses among episodes, movies, and music videos and returns the file path of a randomly selected item if one exists. Updates Store.video_types_in_library to reflect whether a given type is present. If the library contains no eligible videos, no selection is made.
310
+
311
+
Returns:
312
+
str: File path of the selected video.
313
+
False: If no episodes, movies, or music videos exist in the library.
0 commit comments