New logging pls

This commit is contained in:
Salt 2025-01-23 23:22:10 -06:00
parent 9e146c6c69
commit 97de889b8b

View File

@ -8,11 +8,11 @@ class Command(BaseCommand):
help = "Updates all OdyseeChannel objects, creating OdyseeRelease objects for anything new"
def handle(self, *args, **options):
self.stdout.write('Updating Channels...')
self.stdout.write('Scraping Odysee channels for new content...')
updates = 0
failures = []
for channel in odyseescraper.models.OdyseeChannel.objects.all():
print(f'{str(channel)}...')
print(f'Updating channel: {str(channel)}...')
releases = odyseescraper.odysee.odysee_get_releases(channel.handle)
for release in releases:
try: