chg: Other formats for cover also work

This commit is contained in:
Sayantan Santra 2025-04-19 01:47:05 -05:00
parent 90a3e67081
commit 9f26b00148
Signed by: SinTan1729
GPG key ID: 0538DD402EA50898
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ Available options:
-z, --zipfile ZIPFILE -z, --zipfile ZIPFILE
The path of the zip file obtained from Cambridge Core. The path of the zip file obtained from Cambridge Core.
-n, --name NAME The path of the final PDF file. -n, --name NAME The path of the final PDF file.
-c, --cover COVER The path of the cover file. (Must be JPG.) -c, --cover COVER The path of the cover file. (Ideally JPG.)
``` ```
[Link to the base repo.](https://git.sayantansantra.com/SinTan1729/cambridge-core-merge) [Link to the base repo.](https://git.sayantansantra.com/SinTan1729/cambridge-core-merge)

View file

@ -24,7 +24,7 @@ def main():
help="The path of the zip file obtained from Cambridge Core.", help="The path of the zip file obtained from Cambridge Core.",
) )
parser.add_argument("-n", "--name", required=True, help="The path of the final PDF file.") parser.add_argument("-n", "--name", required=True, help="The path of the final PDF file.")
parser.add_argument("-c", "--cover", help="The path of the cover file. (Must be JPG.)") parser.add_argument("-c", "--cover", help="The path of the cover file. (Ideally JPG.)")
args = parser.parse_args() args = parser.parse_args()
zip = ZipFile(args.zipfile, "r") zip = ZipFile(args.zipfile, "r")