Added support for vinted labels
All checks were successful
DNSControl / build (push) Successful in 3m26s

This commit is contained in:
fleaz 2025-05-25 15:55:42 +02:00
parent 125d6eaf7c
commit ef3421ff97
Signed by: fleaz
GPG key ID: 935474624265FE8F
4 changed files with 54 additions and 3 deletions

6
cli.py
View file

@ -1,13 +1,13 @@
#! /usr/bin/env python3
from sys import argv
from convert import convert_dhl, convert_hermes
from convert import *
if __name__ == "__main__":
if len(argv) != 3:
print("Usage:")
print("./cli.py <method> <id>")
print("Method can be 'hermes' or 'dhl'")
print("Method can be 'hermes', 'dhl' or 'vinted'")
exit(1)
method = argv[1]
@ -18,6 +18,8 @@ if __name__ == "__main__":
convert_dhl(id)
case "hermes":
convert_hermes(id)
case "vinted":
convert_vinted(id)
case _:
print("Unknown method")