Skip to content

Commit

Permalink
extension: make local delay 10 seconds (instead of previous 30 minutes)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed May 19, 2020
1 parent 7e87d66 commit 82cfb34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extension/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export async function searchAround(timestamp: number): Promise<Visits> {
}

function getDelayMs(/*url*/) {
return 10 * 60 * 1000; // TODO do something smarter... for some domains we want it to be without delay
return 10 * 1000;
}

const LOCAL_TAG = 'local';
Expand Down
3 changes: 3 additions & 0 deletions tests/convert_screencast.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ def convert(path: Path):

# jeez... https://video.stackexchange.com/a/28276/29090
# otherwise quiality sucks, e.g. letters are grainy
#
# ok, nice guide.. https://gist.github.com/Vestride/278e13915894821e1d6f#convert-to-webm
#
passfile = path.with_suffix(".pass0")
for stage in [
f'-b:v 0 -crf 30 -pass 1 -passlogfile {passfile} -an -f webm /dev/null',
Expand Down
5 changes: 1 addition & 4 deletions tests/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,9 @@ def hyp_extractor():
import my.config
class user_config:
export_path = '{str(DATA)}/hypothesis/netrights-dashboards-mockup/data/*.json'
hypexport = '{hypexport_path}'
my.config.hypothesis = user_config
# TODO good example for documentaion
from my.cfg import set_repo
set_repo('hypexport', '{hypexport_path}')
import promnesia.sources.hypothesis as hypi
return Source(
hypi.index,
Expand Down

0 comments on commit 82cfb34

Please sign in to comment.