Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gerion Entrup
brainzfs
Commits
05a2a395
Commit
05a2a395
authored
Sep 23, 2016
by
Gerion Entrup
Browse files
minor stuff
parent
0e1f2c86
Changes
3
Hide whitespace changes
Inline
Side-by-side
brainzfs.py
View file @
05a2a395
...
...
@@ -63,6 +63,7 @@ class Main:
datefmt
=
'%y-%m-%d %H:%M'
)
logger
=
logging
.
getLogger
(
'main'
)
logger
.
info
(
"initializing database"
)
self
.
_init_database
(
arg
.
database
)
logger
.
info
(
"database initialized"
)
...
...
foo.py
View file @
05a2a395
#!/usr/bin/env python3
import
fetcher
from
utils
import
p_print
from
retrieval
import
fetcher
from
utils
import
p_print
,
pairwise
res
=
fetcher
.
_get_recording
(
'4b442925-9d2a-41e0-b958-4c2739a09d45'
)
# Thriller
# res = fetcher.get_table_by_id('4b442925-9d2a-41e0-b958-4c2739a09d45', fetcher.Web.recording)
# Bravo Hits 42
# res = fetcher.get_table_by_id('db4d23f3-eb64-4ea4-86e3-f17f53718a61', fetcher.Web.release)
# B2B Intro & Hybird Harm (Van Eyden dub mix)
res
=
fetcher
.
get_table_by_id
(
'684726db-c353-40e9-9763-e4b377b34846'
,
fetcher
.
Web
.
recording
)
p_print
(
res
)
settings/__init__.py
View file @
05a2a395
...
...
@@ -7,8 +7,8 @@ fetcher_cache_age = 172800 # 48 hours
directory_prefix
=
'/'
force_clean
=
False
scan_interval
=
20
#
86400 # 24 hours
clean_interval
=
20
#
86400 # 24 hours
scan_interval
=
86400
# 24 hours
clean_interval
=
86400
# 24 hours
update_interval
=
2592000
# 1 month
check_update_interval
=
3600
# 1 hour
...
...
Write
Preview
Supports
Markdown
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