fixup: end with a line separator

This commit is contained in:
tcely authored and GitHub committed 2025-06-12 10:05:56 -04:00
1 parent c7d9a0b58e
commit 6c39e6d3aa
1 file changed
+4 -3
@@ -1,5 +1,6 @@
import base64
import binascii
import os
from common.logger import log
from django.utils.translation import gettext_lazy as _
from sync.models import Source
@@ -38,7 +39,7 @@ class Command(BaseCommand):
def handle(self, *args, **options):
channel_id = options['channel_id']
channel_name = ' '.join(options['name']]).strip()
channel_name = ' '.join(options['name']).strip()
key = options['id']
try:
key = validYoutubeID(key)
@@ -77,14 +78,14 @@ class Command(BaseCommand):
<tag>{channel_id or ''}</tag>
</tvshow>
'''
content = '\n'.join(filter(
content = os.linesep.join(filter(
lambda s: s.replace(
'<studio></studio>', '',
).replace(
'<tag></tag>', '',
).lstrip(' '),
content.splitlines(),
))
)) + os.linesep
log.debug(
f'Writing new content to: {nfo_path}',
)