beet-observer 0.5.0__tar.gz → 0.6.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: beet-observer
3
- Version: 0.5.0
3
+ Version: 0.6.0
4
4
  Summary: A beet plugin to automatically generate overlays from previous datapacks
5
5
  License: MIT
6
6
  Author: BPR02
@@ -1,3 +1,3 @@
1
- __version__ = "0.5.0"
1
+ __version__ = "0.6.0"
2
2
 
3
3
  from .plugin import *
@@ -30,12 +30,14 @@ def beet_default(ctx: Context):
30
30
  save.append(overlay)
31
31
  # loop through all overlays
32
32
  for overlay in ctx.meta["observer"]["overlays"]:
33
- # create relative path
34
- path = f"{ctx.directory}/{overlay['process']}"
33
+ # get pack
34
+ if overlay["process"].startswith("https://"):
35
+ load = overlay["process"]
36
+ else:
37
+ load = f"{ctx.directory}/{overlay['process']}"
35
38
  # generate context for overlay pack
36
39
  with run_beet(
37
- config={"data_pack": {"load": "."}, "resource_pack": {"load": "."}},
38
- directory=path,
40
+ config={"data_pack": {"load": load}, "resource_pack": {"load": load}}
39
41
  ) as ctx_overlay:
40
42
  if "directory" not in overlay:
41
43
  dp_dir = f"overlay_{ctx_overlay.data.pack_format}"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "beet-observer"
3
- version = "0.5.0"
3
+ version = "0.6.0"
4
4
  description = "A beet plugin to automatically generate overlays from previous datapacks"
5
5
  authors = ["BPR02 <dev@bpr02.com>"]
6
6
  license = "MIT"
File without changes
File without changes