Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
fca798e8
Commit
fca798e8
authored
Mar 08, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web-api: fix googlevideo handler to append instead of rewriting
Prevents loss of comments and preserves file order. Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
f306edc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
route-web-api.py
router/route-web-api.py
+2
-2
No files found.
router/route-web-api.py
View file @
fca798e8
...
@@ -1435,8 +1435,8 @@ class RouteHandler(http.server.BaseHTTPRequestHandler):
...
@@ -1435,8 +1435,8 @@ class RouteHandler(http.server.BaseHTTPRequestHandler):
if
pattern
in
entries
:
if
pattern
in
entries
:
self
.
send_json
({
"ok"
:
True
,
"pattern"
:
pattern
,
"added"
:
False
})
self
.
send_json
({
"ok"
:
True
,
"pattern"
:
pattern
,
"added"
:
False
})
return
return
entries
.
append
(
pattern
)
with
open
(
GOOGLEVIDEO_LIST
,
"a"
)
as
f
:
write_list
(
GOOGLEVIDEO_LIST
,
entries
)
f
.
write
(
pattern
+
"
\n
"
)
self
.
log_message
(
"GOOGLEVIDEO ADD
%
s (from
%
s)"
,
pattern
,
domain
)
self
.
log_message
(
"GOOGLEVIDEO ADD
%
s (from
%
s)"
,
pattern
,
domain
)
self
.
send_json
({
"ok"
:
True
,
"pattern"
:
pattern
,
"added"
:
True
})
self
.
send_json
({
"ok"
:
True
,
"pattern"
:
pattern
,
"added"
:
True
})
...
...
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