This is a tutorial on all things regarding lbrynet!
In order to publish these are the main values you would probably want:
bid
amount of LBC attached to the publication. Could be super small or large.name
part of the LBRY url e.g. lbry://channel_name/name
. No special characters are allowedtitle
The title of the publication.description
Description, could be not added but recommended.thumbnail
A link, not file of the thumbnail. The best solution is to do a separate upload for the thumbnail get the spee.ch link of it and make that link the value. Should be automated somehow by the lbry client. Or you could not upload a thumbnail but are recommended.More options on sdk documentation
lbrynet publish --name=aaaaa --bid=0.1 --file_path="~/aaaaa.txt" --title="aaaaa" --description="aaaaa" --channel_name=@TrueAuraCoralPublishesImages
There are two option for signing into lbrynet that I know of:
lbrynet start
. More explanations are in the file:This is a login script for the lbry SDK. Correctly using this login script will let you have complete access to the SDK's publication features. Make sure when running this script you have lbry sdk installed and running in the background of your computer. Otherwise it will not work.
HOW? Bellow you will see a prompt asking for the Auth Token. What do you need to do:
- Go to https://odysee.com
- Make sure you are logged in and go to the account page.
- Right click and get into inspect element.
- In both firefox and chromium based browsers there is a network type of tab. In here you need to find auth token. Inside will be a string with the auth token.
- Do not share this to ANYONE! Copy and paste this into the Auth Token prompt.
Next you will get basic questions asking what is your email and password to your lbry account.
In order to check that everything worked go do this command with your sdk: (Insert test command to show things are working.
import requests
= input("Auth Token: ")
auth_token = input("Account Email: ")
my_email = input("Account Password: ")
my_password #Crete new user
= requests.post("https://api.odysee.com/user/new").json()
newStuff = newStuff["data"]["auth_token"]
auth_token
#Associate user with your account
= requests.post("https://api.odysee.com/user/signin", data={"auth_token":auth_token, "email":my_email, "password": my_password}).json()
signInStuff
= requests.post("http://localhost:5279/?m=sync_hash", json={"jsonrpc":"2.0","method":"sync_hash","params":{}, "id": 1}).json()["result"]
sync_hash
= requests.post("https://api.lbry.com/sync/get", data={"auth_token":auth_token,"hash":sync_hash}).json()
dontknow1
print(dontknow1)
# Password probably needs to be wallet encryption password, I think default is same as Odysee password or empty
= requests.post("http://localhost:5279/?m=sync_apply", json={"jsonrpc": "2.0", "method": "sync_apply", "params": {"password": "", "blocking": "true", "data": dontknow1["data"]["data"]}}).json()
dontknow2
print(dontknow2)