|
1 |
| -""" |
| 1 | +""" |
2 | 2 | @file
|
3 | 3 | @brief This file contains the project file listview, used by the main window
|
4 | 4 | @author Noah Figg <[email protected]>
|
5 | 5 | @author Jonathan Thomas <[email protected]>
|
6 |
| - |
| 6 | +
|
7 | 7 | @section LICENSE
|
8 |
| - |
| 8 | +
|
9 | 9 | Copyright (c) 2008-2018 OpenShot Studios, LLC
|
10 | 10 | (http://www.openshotstudios.com). This file is part of
|
11 | 11 | OpenShot Video Editor (http://www.openshot.org), an open-source project
|
12 | 12 | dedicated to delivering high quality video editing and animation solutions
|
13 | 13 | to the world.
|
14 |
| - |
| 14 | +
|
15 | 15 | OpenShot Video Editor is free software: you can redistribute it and/or modify
|
16 | 16 | it under the terms of the GNU General Public License as published by
|
17 | 17 | the Free Software Foundation, either version 3 of the License, or
|
18 | 18 | (at your option) any later version.
|
19 |
| - |
| 19 | +
|
20 | 20 | OpenShot Video Editor is distributed in the hope that it will be useful,
|
21 | 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 | 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 | 23 | GNU General Public License for more details.
|
24 |
| - |
| 24 | +
|
25 | 25 | You should have received a copy of the GNU General Public License
|
26 | 26 | along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
|
27 | 27 | """
|
@@ -151,6 +151,9 @@ def add_file(self, filepath):
|
151 | 151 | file_data["media_type"] = "image"
|
152 | 152 | elif file_data["has_audio"] and not file_data["has_video"]:
|
153 | 153 | file_data["media_type"] = "audio"
|
| 154 | + else: |
| 155 | + # If neither set, just assume video |
| 156 | + file_data["media_type"] = "video" |
154 | 157 |
|
155 | 158 | # Save new file to the project data
|
156 | 159 | file = File()
|
|
0 commit comments