mirror of
https://github.com/C5H12O5/syno-videoinfo-plugin.git
synced 2025-07-22 00:35:04 +00:00
Fix the package script
This commit is contained in:
2
main.py
2
main.py
@ -6,5 +6,5 @@ import scraper
|
||||
if __name__ == "__main__":
|
||||
# Prints the output of the scraper to the console.
|
||||
root_dir = Path(__file__).resolve().parent
|
||||
plugin_id = root_dir.stem
|
||||
plugin_id = root_dir.name
|
||||
print(scraper.scrape(plugin_id))
|
||||
|
4
setup.py
4
setup.py
@ -9,7 +9,7 @@ from version import version
|
||||
root_dir = Path(__file__).resolve().parent
|
||||
|
||||
# use the name of the root directory as the plugin id
|
||||
plugin_id = root_dir.stem
|
||||
plugin_id = root_dir.name
|
||||
|
||||
# write the INFO file for this plugin
|
||||
info_tmpl = """
|
||||
@ -48,7 +48,7 @@ setup(
|
||||
package_data={
|
||||
"": ["run.sh", "INFO"],
|
||||
"scrapeflows": ["*.json"],
|
||||
"configserver": ["*.html"],
|
||||
"configserver": ["templates/*.html"],
|
||||
},
|
||||
python_requires=">=3.7",
|
||||
)
|
||||
|
Reference in New Issue
Block a user