/
DEV_NOTES.txt
118 lines (83 loc) · 4.35 KB
/
DEV_NOTES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
------------------------------------------------------------------------
FocusCam Upload Python Application
Copyright (C) 2011 Imagination Ltd.
------------------------------------------------------------------------
Installation on Windows
------------------------------------------------------------------------
- Download Python 2.7.1 [Windows x86 MSI Installer (2.7.1)] from
http://www.python.org/download/releases/2.7.1/
- Install with default settings
- Download Youtube's gdata-python-client [gdata-2.0.14.zip] from
http://code.google.com/p/gdata-python-client/downloads/detail?name=gdata-2.0.14.zip&can=2&q=
- Unzip file to the root of the C drive so a new folder is created
here: C:\gdata-2.0.14\
- Set the PYTHONPATH environmental variable to C:\gdata-2.0.14\src\
or add to it if variable exists:
- Go to Control Panel -> System-> Advanced.
- Click 'Environment Variables' button.
- In the 'System Variables' panel that appears, click New and enter
PYTHONPATH in the 'Variable Name' field.
- In the 'Variable Value' field enter path to C:\gdata-2.0.14\src\
------------------------------------------------------------------------
Installation on OS X
------------------------------------------------------------------------
- Make sure Python 2.6.1 or higher is installed
- Download Youtube's gdata-python-client [gdata-2.0.14.zip] from
http://code.google.com/p/gdata-python-client/downloads/detail?name=gdata-2.0.14.zip&can=2&q=
- Unzip file to the root of your machine i.e. /gdata-2.0.14/
- You must now set an environmental variable on your system called
PYTHONPATH to /gdata-2.0.14/src/ once at installation time:
- Make a note of the location of the file named 'environment.plist' in the root
of the application, let's call this e.g. /path/to/youtube-uploader/environment.plist
- Copy this file to .MacOSX folder of the current user's root folder by typing the
following in Terminal:
$ cd
$ mkdir .MacOSX
$ cp /path/to/youtube-uploader/environment.plist ~/.MacOSX/environment.plist
The dollar sign above ($) denotes the Terminal command line prompt and
shouldn't be typed in.
- To see if PYTHONPATH is correctly set up, type 'env' in Terminal and
check the result
Note: Instead of the above, you can set PYHTHONPATH manually each time
you reboot your machine:
$ PYTHONPATH="/gdata-2.0.14/src/:$PYTHONPATH"
$ export PYTHONPATH
------------------------------------------------------------------------
Configuration
------------------------------------------------------------------------
- Copy settings.yaml_sample to settings.yaml
- Look for 'server_incoming' in settings.yaml and replace
'/path/to/server/incoming/' with a valid path on the NAS.
- Look for 'server_archive' in settings.yaml and replace
'/path/to/server/archive/' with a valid path on the NAS.
- Make sure both locations are readable/writable by the Python
application PC (you'll get a warning if this is not the case)
------------------------------------------------------------------------
Running the application
------------------------------------------------------------------------
Windows: Double-click main.py
OS X:
- Open Terminal
- Change directory to the application folder
- Type 'python main.py' and press Enter
To create an executable application on OS X:
- Open '_Start-YouTubeUploader' in AppleScript Editor
- Select 'File' and 'Save As'
- Set 'File Format' to be 'Application'
- Tick 'Run Only'
- Make sure 'Startup Screen' is not ticked
- Save file as '_Start-YouTubeUploader.app'
- Double-click file to run the Python application
------------------------------------------------------------------------
Stopping the application
------------------------------------------------------------------------
Hold down the Control key and press C (<CTRL> + C)
------------------------------------------------------------------------
YouTube API Developer Key used for testing
------------------------------------------------------------------------
Live (Imagination):
AI39si5r_5FreJe0b_63xL8S_i_mgP5imWL1u8mVbimMqrQIK8JXddAvJGgy_t1ZBkBfHDenvL_9cFZAhrK_0qXOXjteUji1yQ
Testing (purplemass):
AI39si7d7xVRmwtUXlhRXWtDs5NQhBNbq7xfLW4ZtIx74yU9Azs0XLCrPTKr60uN-X8juceJpjThVpoVeal-1FT-INJwm7OccQ
------------------------------------------------------------------------
Written by B. Hatamian (purplemass@gmail.com)