Skip to content

Commit ada0b8c

Browse files
committed
added manifest and +version
1 parent 79edfe8 commit ada0b8c

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include drm *

qencode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def x265_video_codec():
2929

3030
from exeptions import QencodeClientException, QencodeTaskException
3131

32-
__version__ = "1.0.2"
32+
__version__ = "1.0.3"
3333
__status__ = "Production/Stable"
3434
__author__ = "Qencode"
3535

sample-code/drm/buydrm/buydrm_widevine_playready.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
from qencode import QencodeClientException, QencodeTaskException
88

99
# replace with your API KEY (can be found in your Project settings on Qencode portal)
10-
API_KEY = 'your-api-qencode-key'
10+
#API_KEY = 'your-api-qencode-key'
11+
API_KEY = '5a2a846a26ace'
12+
#API_KEY = '5a5db6fa5b4c5'
1113

1214
# specify path to your BuyDRM certificate files
1315
USER_PVT_KEY_PATH = './keys/user_private_key.pem'
@@ -27,6 +29,12 @@
2729
"format": [
2830
{
2931
"output": "advanced_dash",
32+
"destination": {
33+
"url": "s3://nyc3.digitaloceanspaces.com/qencode3/regression_tests/encrypt/buydrm_widevine/dash",
34+
"key": "DRSKM355SM7QT4DB7Q37",
35+
"secret": "CGE1pypu02SfZ8DDPtZ5l1M5drFoVmAoVUrPBkQdAjM",
36+
"permissions": "public-read"
37+
},
3038
"stream": [
3139
{
3240
"video_codec": "libx264",
@@ -48,21 +56,15 @@
4856

4957

5058
def start_encode():
51-
"""
52-
Create client object
53-
:param api_key: string. required
54-
:param api_url: string. not required
55-
:param api_version: int. not required. default 'v1'
56-
:return: task object
57-
"""
58-
5959
# this creates signed request to BuyDRM
6060
cpix_request = create_cpix_user_request(
6161
key_ids, media_id, USER_PVT_KEY_PATH, USER_PUB_CERT_PATH,
6262
use_playready=True, use_widevine=True
6363
)
6464

65-
client = qencode.client(API_KEY)
65+
#client = qencode.client(API_KEY, api_url='https://stage-sfo2-1-api-do.qencode.com/')
66+
#client = qencode.client(API_KEY, api_url='https://qa-sfo2-api-do.qencode.com/')
67+
client = qencode.client(API_KEY, api_url='https://prod-nyc1-api-do.qencode.com/')
6668
if client.error:
6769
raise QencodeClientException(client.message)
6870

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name='qencode',
14-
version='1.0.2',
14+
version='1.0.3',
1515
description="Client library for main features and functionality of Qencode for Python v2.x.",
1616
long_description=long_description,
1717
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)