mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Review
This commit is contained in:
parent
03bf3524a4
commit
75a29043b6
5 changed files with 18 additions and 17 deletions
|
|
@ -22,7 +22,7 @@ if __name__ == '__main__':
|
|||
email = argv.email
|
||||
password = argv.password
|
||||
|
||||
connect(mongodb_uri=argv.mongo_uri, alias='default')
|
||||
connect(mongodb_uri=argv.mongo_uri)
|
||||
new_user = ProviderAdminUser.make_provider(email=email.lower(), password=password, country=argv.country,
|
||||
language=argv.language)
|
||||
new_user.status = ProviderAdminUser.Status.ACTIVE
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ def import_streams_to_server(db, server: ServiceSettings):
|
|||
if not len(urls):
|
||||
continue
|
||||
|
||||
stream.output.urls[0].uri = urls[0]
|
||||
stream.output[0].uri = urls[0]
|
||||
stream.name = sql_entry['stream_display_name']
|
||||
tvg_logo = sql_entry['stream_icon']
|
||||
if len(tvg_logo) < constants.MAX_URL_LENGTH:
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ if __name__ == '__main__':
|
|||
m3u_parser.parse()
|
||||
for file in m3u_parser.files:
|
||||
stream = TestLifeStream.make_stream(service_settings)
|
||||
stream.input.urls[0].uri = file['link']
|
||||
stream.input[0].uri = file['link']
|
||||
stream.name = '{0}({1})'.format(file['tvg-group'], file['title'])
|
||||
service_settings.streams.append(stream)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue