lbryio / lbry-sdk

The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
https://lbry.com
MIT License
7.19k stars 484 forks source link

"get" doesn't start downloading #3603

Closed JYamihud closed 2 years ago

JYamihud commented 2 years ago

On the release 0.108.1 we are trying to download things. And they just don't download. I'm using "get" both from bash and from localhost API and nothing seems to work. Everything else works fine. I can resolve a publication. I can search. I can sign comments. But I cannot "get" nothing. It returns something like this:

I was trying to "get" lbry://i'm-not-an-introvert-i-just-don't-like#f7f56e9a9860a2b0ca5b1ff4be254ffaa6d9b36b

{'added_on': 1650306230, 'blobs_completed': 0, 'blobs_in_stream': 4, 'blobs_remaining': 4, 'channel_claim_id': '294f5c164da5ac9735658b2d58d8fee6745dfc45', 'channel_name': '@Jreg', 'claim_id': 'f7f56e9a9860a2b0ca5b1ff4be254ffaa6d9b36b', 'claim_name': "i'm-not-an-introvert-i-just-don't-like", 'completed': False, 'confirmations': 292, 'content_fee': None, 'download_directory': None, 'download_path': None, 'file_name': None, 'height': 1145421, 'is_fully_reflected': False, 'key': '51c051adc133330469277cf0b48b72cf', 'metadata': {'description': '\n...\nhttps://www.youtube.com/watch?v=sCmEGHlIFy8', 'license': 'Copyrighted (contact publisher)', 'release_time': '1650259782', 'source': {'hash': 'bea9ca36047bf147cf8a884465c1bbe7522554acb5f9a2d340605db6b843ff970af7fe94fd3ab3afbcae9bf60000df3d', 'media_type': 'video/mp4', 'name': 'i-m-not-an-introvert-i-just.mp4', 'sd_hash': 'c090f1c117014f3eb346881b5af44d36507f351e3aa2d7ba5da658470be8e57a736649d000171ff598085c992acbd690', 'size': '7928144'}, 'stream_type': 'video', 'thumbnail': {'url': 'https://thumbnails.lbry.com/sCmEGHlIFy8'}, 'title': "I'm Not An Introvert; I Just Don't Like You", 'video': {'duration': 59, 'height': 1080, 'width': 608}}, 'mime_type': 'video/mp4', 'nout': 0, 'outpoint': '6451b9976f8f966e2f5c01853a1fd527a7ce7ed33f63ff97eebc6933aadc271d:0', 'points_paid': 0.0, 'protobuf': '0145fc5d74e6fed8582d8b653597aca54d165c4f2985223dfe9a7f09961301141250115d8a8acaa8f0194ccc71e5f6248bc08154f60ab62e03d40e3c5d9b1d170f3ede2750810ac9ae2ec37b3cf3f4a1babca4ca2e0ac9010a95010a30bea9ca36047bf147cf8a884465c1bbe7522554acb5f9a2d340605db6b843ff970af7fe94fd3ab3afbcae9bf60000df3d121f692d6d2d6e6f742d616e2d696e74726f766572742d692d6a7573742e6d703418d0f2e3032209766964656f2f6d70343230c090f1c117014f3eb346881b5af44d36507f351e3aa2d7ba5da658470be8e57a736649d000171ff598085c992acbd6901a1f436f7079726967687465642028636f6e74616374207075626c69736865722928c6eef392065a0808e00410b808183b422b49276d204e6f7420416e20496e74726f766572743b2049204a75737420446f6e2774204c696b6520596f754a300a2e2e2e0a68747470733a2f2f7777772e796f75747562652e636f6d2f77617463683f763d73436d4547486c4946793852292a2768747470733a2f2f7468756d626e61696c732e6c6272792e636f6d2f73436d4547486c49467938', 'purchase_receipt': None, 'reflector_progress': 0, 'sd_hash': 'c090f1c117014f3eb346881b5af44d36507f351e3aa2d7ba5da658470be8e57a736649d000171ff598085c992acbd690', 'status': 'running', 'stopped': False, 'stream_hash': '7f22ad50986f3d23da33316b414355ead947d391380f0fcb38832070863959e007ff1fd1de0d00915350b31d2fd3644e', 'stream_name': 'i-m-not-an-introvert-i-just.mp4', 'streaming_url': 'http://127.0.0.1:5282/stream/c090f1c117014f3eb346881b5af44d36507f351e3aa2d7ba5da658470be8e57a736649d000171ff598085c992acbd690', 'suggested_file_name': 'i-m-not-an-introvert-i-just.mp4', 'timestamp': 1650260833, 'total_bytes': 7928157, 'total_bytes_lower_bound': 7928141, 'txid': '6451b9976f8f966e2f5c01853a1fd527a7ce7ed33f63ff97eebc6933aadc271d', 'uploading_to_reflector': False, 'written_bytes': 0}

Which seems normal. But it has no download_path no nothing. And the file does not appear.

belikor commented 2 years ago

Are you using lbrynet get --save_file=True?

As far as I recall, you've been using an old SDK, around v0.101. At some point, around v0.103 the default value of save_file was set to False, so if you don't explicitly have this value to True in the configuration file, then you need to provide it in the terminal command so that it actually downloads the file.

If save_file=False it will only download the first blob, called the "manifest blob" (sd_hash), which contains the number of blobs in the file, but doesn't contain any video data.

shyba commented 2 years ago

@belikor is right. save_file is off by default. You need to either (pick one):

Please reopen if it still happens under those cases.