Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
713aa493
Commit
713aa493
authored
Jan 18, 2011
by
Jean-Philippe André
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: Allocine now uses keep_alive()
This will prevent the watchdog window to pop up if the network is slow
parent
5980be37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
share/lua/extensions/allocine-fr.lua
share/lua/extensions/allocine-fr.lua
+5
-0
No files found.
share/lua/extensions/allocine-fr.lua
View file @
713aa493
...
...
@@ -154,9 +154,11 @@ function click_chercher()
spin
:
stop
()
return
end
vlc
.
keep_alive
()
-- Fetch HTML data (max 65 kb)
local
data
=
s
:
read
(
65535
)
vlc
.
keep_alive
()
-- Clean data
data
=
string.gsub
(
data
,
"<b>"
,
""
)
...
...
@@ -296,8 +298,11 @@ function open_fiche(url)
-- Open stream
local
s
=
vlc
.
stream
(
url
)
vlc
.
keep_alive
()
-- Read max 500k (Note: 65k is not enough for the average note)
local
data
=
s
:
read
(
500000
)
vlc
.
keep_alive
()
-- Buffer & temp variables
local
first
=
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment