Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djrandom-py-deleted-112
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is pending deletion, and will be deleted on
2025-06-14
. Repository and other project resources are read-only.
Show more breadcrumbs
ale
djrandom-py-deleted-112
Commits
a20f1d85
Project 'ale/djrandom-py' was moved to 'ale/djrandom-py-deleted-112'. Please update any links and bookmarks that may still have the old path.
Commit
a20f1d85
authored
13 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
fix the logic for realtime_watch option
parent
70017873
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/djrandom_client/client.py
+2
-5
2 additions, 5 deletions
client/djrandom_client/client.py
with
2 additions
and
5 deletions
client/djrandom_client/client.py
+
2
−
5
View file @
a20f1d85
...
@@ -109,8 +109,7 @@ def main():
...
@@ -109,8 +109,7 @@ def main():
help
=
'
URL to the API endpoint
'
)
help
=
'
URL to the API endpoint
'
)
parser
.
add_option
(
'
--bwlimit
'
,
type
=
'
int
'
,
parser
.
add_option
(
'
--bwlimit
'
,
type
=
'
int
'
,
help
=
'
Bandwidth limit (in KBps, default unlimited)
'
)
help
=
'
Bandwidth limit (in KBps, default unlimited)
'
)
parser
.
add_option
(
'
--realtime_watch
'
,
action
=
'
store_true
'
,
parser
.
add_option
(
'
--no_realtime_watch
'
,
action
=
'
store_true
'
,
default
=
True
,
help
=
'
Monitor music_dir in realtime
'
)
help
=
'
Monitor music_dir in realtime
'
)
daemonize
.
add_standard_options
(
parser
)
daemonize
.
add_standard_options
(
parser
)
utils
.
read_config_defaults
(
utils
.
read_config_defaults
(
...
@@ -127,9 +126,7 @@ def main():
...
@@ -127,9 +126,7 @@ def main():
# Reading from the configuration file will set this variable to
# Reading from the configuration file will set this variable to
# a string, convert it back into boolean.
# a string, convert it back into boolean.
do_realtime
=
opts
.
realtime_watch
do_realtime
=
not
opts
.
no_realtime_watch
if
isinstance
(
do_realtime
,
basestring
):
do_realtime
=
(
do_realtime
.
lower
()
in
(
'
true
'
,
'
on
'
,
'
yes
'
))
daemonize
.
daemonize
(
opts
,
run_client
,
daemonize
.
daemonize
(
opts
,
run_client
,
(
opts
.
server_url
,
opts
.
music_dir
,
opts
.
api_key
,
(
opts
.
server_url
,
opts
.
music_dir
,
opts
.
api_key
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment