Skip to content

Commit b5b6c6b

Browse files
committed
v1.1.0 - Move the library class to it's own file so it's not run on installation
1 parent 83b9acc commit b5b6c6b

File tree

13 files changed

+370
-285
lines changed

13 files changed

+370
-285
lines changed

.github/workflows/release-packager.yml renamed to .github/workflows/pypi-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflows will upload a Python Package using Twine when a release is created
22
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

4-
name: Release Packager
4+
name: PyPI CI
55

66
on:
77
release:

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dictionaries/phoenix.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/pydvdcss.iml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
<p>&nbsp;</p><p>&nbsp;</p>
1414

15-
from pydvdcss import PyDvdCss
15+
from pydvdcss.dvdcss import DvdCss
1616

1717
# ...
1818

1919
# choose device
2020
dev = "/dev/sr0"
2121

2222
# use `with` to auto dispose once you leave the tree
23-
# of course you can also just do `dvdcss = PyDvdCss()`
24-
with PyDvdCss() as dvdcss:
23+
# of course you can also just do `dvdcss = DvdCss()`
24+
with DvdCss() as dvdcss:
2525

2626
# open device
2727
dvdcss.open(dev)
@@ -40,7 +40,7 @@
4040

4141
# make sure you dispose when your done if you didn't
4242
# use `with`, otherwise stuff will get stuck in memory.
43-
# usage of `with` on pydvdcss automatically handles disposing.
43+
# usage of `with` on DvdCss automatically handles disposing.
4444
# dvdcss.dispose()
4545

4646
<p>&nbsp;</p><p>&nbsp;</p>
@@ -127,7 +127,7 @@ _Note: with the second method you will need to handle updating yourself by re-cl
127127

128128
# Functions
129129

130-
## PyDvdCss.open(psz_target=[string])
130+
## DvdCss.open(psz_target=[string])
131131

132132
Open a DVD device or directory and return a dvdcss instance.
133133

@@ -140,14 +140,14 @@ error occurred, NULL is returned.
140140

141141
- **psz_target**: target name, e.g. "/dev/hdc" or "E:".
142142

143-
## PyDvdCss.close()
143+
## DvdCss.close()
144144

145145
Close the DVD and clean up the library.
146146

147147
Close the DVD device and free all the memory allocated by libdvdcss.
148148
On return, the dvdcss_t handle is invalidated and may not be used again.
149149

150-
## PyDvdCss.seek(i_blocks=[int], i_flags=[int;NOFLAGS])
150+
## DvdCss.seek(i_blocks=[int], i_flags=[int;NOFLAGS])
151151

152152
Seek in the disc and change the current key if requested.
153153

@@ -166,7 +166,7 @@ Tips:
166166
- **i_blocks**: absolute block offset to seek to.
167167
- **i_flags**: NOFLAGS by default, or you can specify SEEK_KEY or SEEK_MPEG flags.
168168

169-
## PyDvdCss.read(i_blocks=[int], i_flags=[int;NOFLAGS])
169+
## DvdCss.read(i_blocks=[int], i_flags=[int;NOFLAGS])
170170

171171
Read from the disc and decrypt data if requested.
172172

@@ -175,12 +175,12 @@ Returns the amount of blocks read, or a negative value in case an error happened
175175

176176
Tips:
177177

178-
> Get the read contents from the buffer variable of PyDvdCss instance.
178+
> Get the read contents from the buffer variable of DvdCss instance.
179179
180180
- **i_blocks**: absolute block offset to seek to.
181181
- **i_flags**: NOFLAGS by default, or you can specify the READ_DECRYPT flag.
182182

183-
## PyDvdCss.error()
183+
## DvdCss.error()
184184

185185
Return a string containing the latest error that occurred in the given libdvdcss
186186
instance.
@@ -191,7 +191,7 @@ application.
191191

192192
Returns a null-terminated string containing the latest error message.
193193

194-
## PyDvdCss.is_scrambled()
194+
## DvdCss.is_scrambled()
195195

196196
Check if the DVD is scrambled.
197197

0 commit comments

Comments
 (0)