incyclist-services 1.7.92 → 1.7.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -159,11 +159,12 @@ let RouteCard = (() => {
|
|
|
159
159
|
const videoUrl = descr.videoUrl;
|
|
160
160
|
if (!descr.videoUrl)
|
|
161
161
|
return true;
|
|
162
|
+
const normalizedUrl = videoUrl.replace('video:////', 'video:///').replace('file:////', 'file:///');
|
|
162
163
|
let path = undefined;
|
|
163
|
-
if (
|
|
164
|
-
path =
|
|
165
|
-
if (
|
|
166
|
-
path =
|
|
164
|
+
if (normalizedUrl.startsWith('file:///'))
|
|
165
|
+
path = normalizedUrl.replace('file://', '');
|
|
166
|
+
if (normalizedUrl.startsWith('video:///'))
|
|
167
|
+
path = normalizedUrl.replace('video://', '');
|
|
167
168
|
if (path) {
|
|
168
169
|
return await this.fileExists(path);
|
|
169
170
|
}
|
|
@@ -156,11 +156,12 @@ let RouteCard = (() => {
|
|
|
156
156
|
const videoUrl = descr.videoUrl;
|
|
157
157
|
if (!descr.videoUrl)
|
|
158
158
|
return true;
|
|
159
|
+
const normalizedUrl = videoUrl.replace('video:////', 'video:///').replace('file:////', 'file:///');
|
|
159
160
|
let path = undefined;
|
|
160
|
-
if (
|
|
161
|
-
path =
|
|
162
|
-
if (
|
|
163
|
-
path =
|
|
161
|
+
if (normalizedUrl.startsWith('file:///'))
|
|
162
|
+
path = normalizedUrl.replace('file://', '');
|
|
163
|
+
if (normalizedUrl.startsWith('video:///'))
|
|
164
|
+
path = normalizedUrl.replace('video://', '');
|
|
164
165
|
if (path) {
|
|
165
166
|
return await this.fileExists(path);
|
|
166
167
|
}
|