Skip to content

Commit

Permalink
Merge pull request #196 from nida-imran173/default-publisher
Browse files Browse the repository at this point in the history
Fixes #192: Update default publisher to 'openZIM'
  • Loading branch information
benoit74 authored Mar 14, 2024
2 parents 26f5c71 + c677b48 commit 7df7c9e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Changed default publisher metadata to 'openZIM'

## [2.2.0] - 2023-11-17

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/youtube2zim/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def main():
)

parser.add_argument(
"--publisher", help="Custom publisher name (ZIM metadata)", default="Kiwix"
"--publisher", help="Custom publisher name (ZIM metadata)", default="openZIM"
)

parser.add_argument(
Expand Down
5 changes: 2 additions & 3 deletions src/youtube2zim/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def __init__(
dateafter,
use_any_optimized_version,
s3_url_with_credentials,
publisher,
title=None,
description=None,
creator=None,
publisher=None,
name=None,
profile_image=None,
banner_image=None,
Expand Down Expand Up @@ -354,7 +354,7 @@ def run(self):
description=self.description,
language=self.language,
creator=self.creator,
publisher="Kiwix",
publisher=self.publisher,
tags=self.tags,
scraper=SCRAPER,
)
Expand Down Expand Up @@ -807,7 +807,6 @@ def update_metadata(self):
)
else:
self.creator = _("Youtube Channels")
self.publisher = self.publisher or "Kiwix"

self.tags = self.tags or ["youtube"]
if "_videos:yes" not in self.tags:
Expand Down

0 comments on commit 7df7c9e

Please sign in to comment.