123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- import os
- os.system("chmod u+x flbry/lbrynet")
- from flbry.variables import *
- logo()
- import platform
- if platform.system() != "Linux":
- center("OS "+platform.system().upper()+" NOT SUPPORTED!", "bdrd", True)
- center("Type 'osinfo' to learn more.", "bdrd")
- from flbry import connect
- from flbry import search
- from flbry import channel
- from flbry import wallet
- from flbry import uploads
- from flbry import list_files
- from flbry import markdown
- from flbry import trending
- from flbry import url
- from flbry import publish
- while True:
- command = input(typing_dots())
- if command == "exit":
- connect.stop()
- break
-
- elif command == "quit":
- print(" Quit does not disconnect the SDK!")
- print(" To disconnet use exit or disconnect.")
- break
-
- elif command == "help":
- markdown.draw("help/main.md", "Help")
- elif command == "osinfo":
- markdown.draw("help/os.md", "Operating System Information")
-
-
- elif command == "matrix":
- print(" #FastLBRY:matrix.org")
- elif command == "clear":
- os.system("clear")
- elif command == "repository":
- print(" https://notabug.org/jyamihud/FastLBRY-terminal")
- elif command == "report":
- print(" https://notabug.org/jyamihud/FastLBRY-terminal/issues")
- elif command == "license":
- markdown.draw("LICENSE.md", "License (GPLv3 or later)")
-
- elif command == "connect":
- connect.start()
-
- elif command == "disconnect":
- connect.stop()
- elif command.startswith("publish"):
- if " " in command:
- publish.configure(command[command.find(" ")+1:])
- else:
- publish.configure()
-
- elif command == "history":
- list_files.downloaded()
- elif command.startswith("search"):
- if " " in command:
- search.simple(command[command.find(" ")+1:])
- else:
- search.simple()
- elif command == "channels":
- channel.simple(channel.select())
-
- elif command.startswith("channel"):
- if " " in command:
- channel.simple(command[command.find(" ")+1:])
- else:
- channel.simple()
- elif command.startswith("trending"):
- trending.simple()
- elif command.startswith("articles"):
- trending.simple(articles=True)
-
-
- elif command == "login":
- markdown.draw("help/login.md", "Login Help")
-
- elif command == "wallet":
- wallet.history()
- elif command == "uploads":
- uploads.simple()
-
-
-
-
-
-
-
- elif command:
- url.get(command)
|