beet-observer 0.5.0__py3-none-any.whl → 0.6.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
beet_observer/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
- __version__ = "0.5.0"
1
+ __version__ = "0.6.0"
2
2
 
3
3
  from .plugin import *
beet_observer/plugin.py CHANGED
@@ -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
  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
@@ -0,0 +1,8 @@
1
+ beet_observer/__init__.py,sha256=1Bu06DCGzyW6_EOuOSqpm31Fvkl_thjvyH54vN4XjZ4,45
2
+ beet_observer/data_pack.py,sha256=QqoyQYiCBpqioaKYSUKANgd3dxJJFLGka92G3Tyz_Js,9800
3
+ beet_observer/plugin.py,sha256=YBxXXzWGGVKqJHTuYi9a3KQO6-E841OS3iHcTnKXg_s,2011
4
+ beet_observer/resource_pack.py,sha256=_a4Ubx8fO7HMnIbfQlsnYEIM_Vjo3o_QjarirqbWdkc,6233
5
+ beet_observer-0.6.0.dist-info/LICENSE,sha256=oBbP6j7sgG9darFSRZxV7iO8yPR1aZiDspSK3mcLpXI,1062
6
+ beet_observer-0.6.0.dist-info/METADATA,sha256=kgd3ISGBKRueQuQvvapeouk5auWa2FB4oldNV4vKW3w,674
7
+ beet_observer-0.6.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
8
+ beet_observer-0.6.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- beet_observer/__init__.py,sha256=cZtzkQEWddSPeBHx0VxE9-DFeVnqU_DR6nXcko6ejNE,45
2
- beet_observer/data_pack.py,sha256=QqoyQYiCBpqioaKYSUKANgd3dxJJFLGka92G3Tyz_Js,9800
3
- beet_observer/plugin.py,sha256=tEMhLtvMPXOsKDNIjZi775QRvBuL5jiOCAzh-xVEkew,1940
4
- beet_observer/resource_pack.py,sha256=_a4Ubx8fO7HMnIbfQlsnYEIM_Vjo3o_QjarirqbWdkc,6233
5
- beet_observer-0.5.0.dist-info/LICENSE,sha256=oBbP6j7sgG9darFSRZxV7iO8yPR1aZiDspSK3mcLpXI,1062
6
- beet_observer-0.5.0.dist-info/METADATA,sha256=jz1dEhPTK9A6e8riYTDn8i1z8csFCmwB0KMci2xR-IM,674
7
- beet_observer-0.5.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
8
- beet_observer-0.5.0.dist-info/RECORD,,