Jack
a8a581d35c
Merge branch 'master' into auth-jsonrpc
...
# Conflicts:
# lbrynet/conf.py
# lbrynet/core/Error.py
# lbrynet/lbrynet_daemon/Daemon.py
# lbrynet/lbrynet_daemon/DaemonControl.py
# lbrynet/lbrynet_daemon/ExchangeRateManager.py
2016-10-14 18:25:37 -04:00
Alex Liebowitz
988c9595c7
Add default MIME type during publication
...
Needed because the new JSON schema enforces that the content type is a
string (not null).
2016-10-14 10:37:19 -04:00
Alex Liebowitz
0dd9aa0d67
Update error that daemon catches for malformed metadata
...
Now jsonschema.ValidationError instead of AssertionError
2016-10-14 10:37:19 -04:00
Job Evers-Meltzer
e647663c34
Fix error when version is None
...
Logs were reporting:
Failure instance: Traceback: <type 'exceptions.AttributeError'>: StrictVersion instance has no attribute 'version'
/Volumes/LBRY/LBRY.app/Contents/Resources/lib/python2.7/lbrynet/lbrynet_daemon/DaemonServer.py:121:requestReceived
twisted/web/server.pyc:183:process
twisted/web/server.pyc:234:render
/Volumes/LBRY/LBRY.app/Contents/Resources/lib/python2.7/lbrynet/lbrynet_daemon/Daemon.py:450:render
--- <exception caught here> ---
twisted/internet/defer.pyc:150:maybeDeferred
/Volumes/LBRY/LBRY.app/Contents/Resources/lib/python2.7/lbrynet/lbrynet_daemon/Daemon.py:1561:jsonrpc_version
/Volumes/LBRY/LBRY.app/Contents/Resources/lib/python2.7/lbrynet/core/utils.py:39:version_is_greater_than
distutils/version.pyc:140:__cmp__
2016-10-14 10:35:17 -04:00
Jack Robison
32a973943f
Merge pull request #173 from lbryio/blob-prices
...
Blob prices
2016-10-13 14:59:26 -04:00
Jack
19c2264429
clean up
2016-10-13 13:35:55 -04:00
Job Evers‐Meltzer
897c113db1
Merge pull request #180 from lbryio/configure-lbryum
...
Configure lbryum
2016-10-11 16:46:39 -05:00
Jack
50e5a59420
remove unused imports
2016-10-07 17:29:20 -04:00
Jack
5a0b5dc680
Merge branch 'master' into auth-jsonrpc
...
# Conflicts:
# lbrynet/lbrynet_daemon/Daemon.py
# lbrynet/lbrynet_daemon/DaemonControl.py
2016-10-07 17:11:43 -04:00
Jack
be1803d558
remove unused imports
2016-10-07 14:52:54 -04:00
Jack
84bbf2f76e
move set_no_cache into own function
2016-10-07 14:28:38 -04:00
Jack
fe7ea7c679
refactor resources and file streamer into their own files, use NoCacheStaticFile instead of static.File
2016-10-07 14:01:59 -04:00
Jack
782e197e66
Merge branch 'master' into blob-prices
2016-10-05 23:25:39 -04:00
Jack
88be425ab2
fix pylint errors
2016-10-05 23:24:22 -04:00
Job Evers-Meltzer
a71e87a398
throw error when invalid wallet is specified
2016-10-04 13:59:04 -05:00
Job Evers-Meltzer
0ecfad0ae9
add configuration to LBRYumWallet
2016-10-04 13:58:44 -05:00
Job Evers-Meltzer
e909ae566b
add TODO
2016-10-03 16:19:58 -05:00
Alex Liebowitz
04ced2e975
Fix import issues in DaemonServer.py
2016-10-02 02:50:17 -04:00
Alex Liebowitz
2253943eba
Shorten time between sending chunks of video stream
2016-10-02 02:03:47 -04:00
Alex Liebowitz
a6fcd5d1f2
More refactoring in LBRYStreamProducer
2016-10-01 23:35:07 -04:00
Alex Liebowitz
f245822814
Refactor of LBRYStreamProducer
2016-10-01 23:35:07 -04:00
Alex Liebowitz
aa3aff91d0
Refactor LBRYStreamProducer and add Content-Length header
...
Also fixes producer pause/unpause behavior and adds slight delay
between sending chunks
2016-10-01 23:33:51 -04:00
Alex Liebowitz
5537dd878f
Add basic support for streaming partially downloaded files
2016-10-01 23:29:08 -04:00
Jack
d741c705cd
add some tests, don't use lighthouse for cost ests
2016-10-01 01:09:27 -04:00
Jack
640e000b9f
fix timeouts in get_availability
2016-09-30 13:35:13 -04:00
Jack
8d961d6ce6
add get_availability
2016-09-30 13:28:01 -04:00
Jack
71b989b29b
update from master
...
resolve merge conflicts:
lbrynet/core/client/BlobRequester.py
lbrynet/core/Peer.py
lbrynet/lbryfilemanager/EncryptedFileManager.py
lbrynet/lbrynet_daemon/Daemon.py
lbrynet/lbrynet_daemon/Publisher.py
2016-09-29 23:34:59 -04:00
Jack
4727ee0403
Merge branch 'master' into refactor-blob-requester
2016-09-29 12:48:34 -04:00
Jack
ff7829a078
Merge branch 'master' into rename-LBRY
2016-09-29 12:47:22 -04:00
Job Evers-Meltzer
6a72b3683e
send Download Started event
2016-09-28 09:07:25 -07:00
Job Evers-Meltzer
b201fc331c
simplify callback when downloading
2016-09-28 09:06:51 -07:00
Jack
b671a3c2ba
Merge branch 'master' into blob-prices
2016-09-27 23:59:14 -04:00
Jack
1cc6b7658c
get uploads working
...
-add error catching in exchange rate manager
-add free data on first request with default negotiation strategy
2016-09-27 23:56:08 -04:00
Job Evers-Meltzer
a099e2db6a
fix errors
2016-09-27 11:18:52 -07:00
Job Evers-Meltzer
7dbeb1f2cf
Remove LBRY prefix from class and module names
...
This is the result of running:
grep -RlI LBRY . | xargs sed -i 's/LBRY\([A-Z]\)/\1/g'
2016-09-27 11:18:35 -07:00
Job Evers-Meltzer
550fd185a3
rename LBRYFile to EncryptedFile
2016-09-27 11:18:16 -07:00
Jack
1720cce3b0
negotiated downloads
...
-uploads are still underway
2016-09-27 13:52:44 -04:00
Job Evers-Meltzer
078b254d1d
rename files to remove LBRY prefix
2016-09-25 18:11:23 -07:00
Job Evers-Meltzer
5ea7c4f016
fix typo in string format
2016-09-25 17:17:48 -07:00
Job Evers-Meltzer
4334cdace1
Refactor blob requester to better seperate out the three requests
...
Each blob requests has three parts
- A request to see what blobs are available
- A request to download and pay for one of those blobs
- A request to negotiate data costs
Before the refactoring all of the code to accomplish this was mixed into
one class. They are now three seperate classes.
There is still a lot of room for improvement, but it is at least better than
it was.
2016-09-25 16:55:55 -07:00
Jack Robison
bbcecea28d
Merge pull request #165 from lbryio/get-my-claim
...
add get_my_claim, remove is_mine from get_claim_info response
2016-09-24 01:01:51 -04:00
Jack
dbeb6bc3bc
update uri handler
2016-09-21 21:55:10 -04:00
Jack
4d79a7828c
more cleaning up
2016-09-21 21:36:06 -04:00
Jack
aecafbbebd
clean up
2016-09-21 03:49:52 -04:00
Jack
130f9cfc4d
api sessions
...
-user starts a httpauthsession with an api key and name
-user initializes jsonrpc hmac secret to sha256 of session id
-server sends new random hmac secret after each api call
-a user without an authenticated session will get a authorization error
2016-09-20 16:58:30 -04:00
Jack
7ad916f116
fix api being blocked for /? pages
2016-09-16 04:12:13 -04:00
Jack
7085b1e3c3
block api requests by referer
2016-09-16 03:40:06 -04:00
Jack
3ae0664fa9
use prettier file format for daemon conf file
2016-09-16 00:14:25 -04:00
Jack
add163a092
move get_params to own function, add some tests
2016-09-15 22:20:00 -04:00
Jack
fcfed3f441
add get_my_claim and get rid of is_mine in get_claim_info
2016-09-15 20:15:20 -04:00
Jack
7b84d9b10a
handle no params
2016-09-15 15:04:42 -04:00
Jack
e9a1dbca4b
fix windows cli
...
make cli easier to use on windows by converting keyword args to json
cli now accepts commands like:
lbrynet-cli resolve_name name=one
as well as:
lbrynet-cli resolve_name ‘{“name”: “one”}’
2016-09-15 14:47:32 -04:00
Jack
4cc941fbec
make abandon_claim compatible with old function name
2016-09-14 22:36:18 -04:00
Jack
6ea1f6f78c
block api calls from bad origins
2016-09-14 17:39:19 -04:00
Jack
3c9c178bdc
fix conf update
2016-09-12 15:44:56 -04:00
Jack
a23f2ca956
allow more download attempts after having timed out
...
-also lower the name cache time
2016-09-12 15:39:19 -04:00
Jack
ccaeecfd46
bug fix
2016-09-12 13:17:21 -04:00
Jack
f352a3c597
rename abandon_name to abandon_claim
2016-09-12 13:16:03 -04:00
Jack
8cdbc847d1
add get_search_servers to allowed_during_startup
2016-09-09 05:11:51 -04:00
Jack
eea5cbbafc
add get_search_servers
2016-09-09 04:04:35 -04:00
Jack Robison
e4c61a4a13
Merge pull request #155 from lbryio/get-block-by-height
...
add 'height' parameter to get_block
2016-09-09 00:57:51 -04:00
Jack
0f0afadc94
add 'height' parameter to get_block
2016-09-09 00:48:54 -04:00
Alex Grintsvayg
659563f27a
fix indent
2016-09-08 13:41:11 -04:00
Alex Grintsvayg
cbd8a68d0f
print actual json
2016-09-08 13:40:43 -04:00
Alex Liebowitz
900eeb177a
Add address_is_mine() API method
2016-09-02 01:27:30 -04:00
Jack
0203ef66ea
build windows in setup.py, drop leveldb requirement
2016-08-31 20:20:07 -04:00
Jack Robison
25c71bcd98
Merge pull request #140 from lbryio/reflect-blobs
...
reflect_all_blobs daemon command
2016-08-28 01:33:13 -04:00
Jack Robison
319e7ecc61
Merge pull request #131 from lbryio/content_type
...
change content-type to content_type, refactor metadata validation
2016-08-28 01:29:51 -04:00
Jack
63f81d1033
prevent a lbry files opened through the ui from making api calls
2016-08-27 23:16:48 -04:00
Jack
aa66af7ba6
fix tests
2016-08-26 20:22:11 -04:00
Jack
be3633622c
whoops
2016-08-26 20:13:10 -04:00
Jack
b235f6fc6b
send all blobs to reflector
2016-08-26 19:58:53 -04:00
Jack Robison
76b297b173
Merge pull request #139 from lbryio/get_all_verified_blobs
...
Get all verified blobs
2016-08-26 19:45:49 -04:00
Jack Robison
4e2296d5f6
Merge pull request #115 from lbryio/get-stream-timeout
...
raise Exception on GetStream timeout
2016-08-26 16:07:42 -04:00
Jack
2a2658d440
fix Access-Control-Allow-Origin problem
2016-08-26 00:50:31 -04:00
Jack
710e549c03
add get_all_verified_blobs
2016-08-26 00:32:33 -04:00
Jack
47fae977dd
fix Access-Control-Allow-Origin problem
2016-08-25 23:39:05 -04:00
Jack
80837cb040
Merge branch 'master' into content_type
...
fix conflicts:
lbrynet/lbrynet_daemon/LBRYPublisher.py
2016-08-25 17:59:20 -04:00
Jack
46153a8991
second shot at pylint error
2016-08-23 02:25:32 -04:00
Jack
a9fccfd4ce
fix pylint error
2016-08-23 02:17:32 -04:00
Dave-A
79384e7bf8
Merge pull request #7 from lbryio/master
...
Update
2016-08-22 20:02:35 -04:00
Jack
128b32c62c
even less noisy logs
2016-08-22 19:56:42 -04:00
David Amrhein
c1233bd26b
Make 'rb' file mode windows specific
2016-08-22 19:55:08 -04:00
David Amrhein
e23f67def6
File handle for publishing on windows needs to handle binary data as 'rb'
2016-08-22 19:24:57 -04:00
David Amrhein
d8cb62a92c
Run win32 as systray app
2016-08-21 18:44:16 -04:00
Dave-A
aab8cc40f9
Merge pull request #6 from lbryio/master
...
Update from Origin
2016-08-21 14:13:59 -04:00
Jack Robison
ce2755467d
Merge pull request #133 from sonatagreen/patch-1
...
spelling fix
2016-08-21 03:44:10 -04:00
Jack
15cfa45646
remove duplicate function
2016-08-21 00:58:25 -04:00
Sonata Green
31b9d22649
spelling fix
2016-08-19 21:12:02 -05:00
Jack
7a54894015
debugging stuff
2016-08-19 02:41:23 -04:00
Jack
7100345a09
Merge branch 'master' into reflector
2016-08-18 22:42:27 -04:00
Jack
d9455926c5
Merge branch 'master' into content_type
2016-08-18 21:56:55 -04:00
David Amrhein
ba5cd741e1
Testing copying instead of moving upload file to avoid access error
2016-08-18 10:45:03 -04:00
Dave-A
8c94b6243e
Merge pull request #5 from lbryio/master
...
Update to 0.3.19
2016-08-18 10:38:07 -04:00
Jack Robison
3cd9d6a604
Merge pull request #129 from kimihiro64/patch-2
...
Proper no-cache for web-ui index.html
2016-08-18 06:39:11 -04:00
Jack
142281777e
stop heartbeat looping call on shutdown
2016-08-18 06:37:57 -04:00
Jack
702698d8aa
stop heartbeat looping call on shutdown
2016-08-18 05:25:23 -04:00
David Amrhein
73dbe1de37
Fix relative pathing for cacert for win builds
2016-08-18 01:25:48 -04:00
kimihiro64
e7158e5a4b
Fix editor spacing again
2016-08-17 23:02:38 -05:00
kimihiro64
c66df259a6
fix editor spacing
2016-08-17 23:02:00 -05:00
kimihiro64
0b8437fa12
Proper no-cache for web-ui index.html
2016-08-17 22:34:20 -05:00
Jack
a32b6ebf82
add reflect jsonrpc command
2016-08-17 21:33:41 -04:00
Jack
cc1b3609a1
Merge branch 'master' into reflector
...
# Conflicts:
# lbrynet/__init__.py
2016-08-17 19:01:38 -04:00
David Amrhein
90b28b3dbd
Pass WindowsError when moving uploaded file
2016-08-17 14:15:55 -04:00
Jack
0f7ca8f24e
move metadata and validator classes into their own directory
2016-08-17 12:28:15 -04:00
Dave-A
2fbf03d8ca
Merge pull request #4 from lbryio/master
...
Update from lbry
2016-08-17 12:03:08 -04:00
Jack
68b8112af0
Merge branch 'master' into content_type
2016-08-17 03:04:14 -04:00
Jack
1ddb02dbb7
speed up search
...
get results for get_est_cost from lighthouse instead of manually trying
unless force=True
2016-08-17 02:38:59 -04:00
Jack Robison
1932fd72e3
Merge pull request #123 from lbryio/add-heartbeat
...
Add basic analytics api and heartbeat event
2016-08-17 01:34:31 -04:00
Jack Robison
c061fe091b
Merge pull request #122 from lbryio/add-debug-logging
...
Add debug logging
2016-08-17 01:33:07 -04:00
Dave-A
b6656690ca
Merge pull request #3 from lbryio/master
...
Update from lbry
2016-08-16 21:13:24 -04:00
David Amrhein
f28eee34e8
Merge remote-tracking branch 'origin/master'
2016-08-15 20:31:59 -04:00
Jack
272e074a15
change content-type to content_type, make changing metadata easier
2016-08-14 01:00:49 -04:00
Job Evers
9a738c3783
Add basic analytics api and heartbeat event
2016-08-12 13:37:26 -05:00
Job Evers-Meltzer
9b1d5213a6
improve logging
2016-08-12 10:44:37 -05:00
Job Evers
63cd8343c4
replace callLater with deferLater
2016-08-11 13:41:42 -05:00
Jack
2d5f8aed24
whitespace
2016-08-11 12:38:10 -04:00
Jack
b8d23d0965
add announce_all_blobs_to_dht
2016-08-11 12:36:13 -04:00
Job Evers-Meltzer
623fda3087
improve logging
2016-08-11 05:16:50 +00:00
Job Evers-Meltzer
80f27f2b29
Revert "more logging on the server side"
...
This reverts commit f83daa5a22
.
2016-08-11 05:11:18 +00:00
Jack
5285982515
resolve reflector ip
2016-08-11 01:07:51 -04:00
Job Evers-Meltzer
f83daa5a22
more logging on the server side
2016-08-11 04:45:25 +00:00
Job Evers-Meltzer
1a42e43573
log all the things
2016-08-10 19:06:26 -05:00
Jack
132aa569fe
move run_reflector_server into settings file and add debug lines
2016-08-10 16:51:46 -04:00
Job Evers-Meltzer
67909724e7
fix up import paths
2016-08-10 07:44:41 -05:00
Jack
1c88cbc5f6
Merge branch 'master' into reflector
2016-08-10 02:31:28 -04:00
Jack
e9f5b43785
fix exceptions
2016-08-09 14:29:59 -04:00
Jack
0733d885fb
start reflector upload in publish
2016-08-09 12:26:34 -04:00
Jack
ef6fe3d1d9
add variable to enable running reflector server
2016-08-09 12:18:46 -04:00
Jack
82a4fea81a
fix log statement
2016-08-09 12:12:40 -04:00
Jack
14a0252819
hooking up reflector plumbing
2016-08-09 12:07:26 -04:00
Jack
a05ab37373
Merge branch 'master' into update-claim
...
# Conflicts:
# lbrynet/lbrynet_daemon/LBRYDaemon.py
2016-08-09 03:09:06 -04:00
Jack Robison
8d14fe6a90
Merge pull request #113 from lbryio/log-to-loggly
...
Log to loggly
2016-08-09 02:30:55 -04:00
Jack
4a5618bcc4
get update claim working with lbryumwallet
2016-08-08 21:32:39 -04:00
Job Evers-Meltzer
c1850fe604
raise Exception on GetStream timeout
2016-08-08 16:26:33 -05:00
Job Evers-Meltzer
fccdf32c9f
Remove all unused imports; add check to pylint
2016-08-08 15:42:35 -05:00
Job Evers-Meltzer
9033eac5b1
Remove commented code
2016-08-08 15:07:25 -05:00
Job Evers-Meltzer
0ba0426591
Refactor lbrycrdd path function for osx
2016-08-08 15:06:48 -05:00
Job Evers-Meltzer
b8ddbb9a26
Add loggly logger
...
It configured twice, once right at startup without the lbry id and then
after the settings database is available it gets reconfigured with the
lbry id and a session id.
2016-08-08 15:02:36 -05:00
Job Evers-Meltzer
bc3c2b96ed
disable noisy loggers
2016-08-08 14:59:30 -05:00
Job Evers-Meltzer
622dc87d84
Remove log handlers with the same name
...
Also renames functions to follow underscore convention
2016-08-08 14:57:49 -05:00
Jack
18edbdf404
squelch resolve_name logging
2016-08-08 14:58:31 -04:00
Jack
505ece9e36
add txid param to get_claim_info and update todo note
2016-08-08 02:37:08 -04:00
Jack
72acfa1e0c
add support_claim
2016-08-08 02:32:56 -04:00
Jack
02cd8b9a44
fix callback
2016-08-08 02:08:09 -04:00
Jack
ed55353700
bug fix
2016-08-08 01:43:28 -04:00
Jack
8d3bd45102
get_claims_for_name daemon function
2016-08-08 01:43:10 -04:00
Jack
36ebfc42d9
update from master
2016-08-06 21:44:14 -04:00
Jack
66ae865de0
don't make new lbry file if publish is given a full metadata dict, remove update_claim()
2016-08-06 20:02:51 -04:00
Job Evers-Meltzer
8c50f08fec
refactor _start_download
2016-08-05 11:37:24 -05:00