Skip to content

Commit 9d6af61

Browse files
committed
Merge branch 'release/1.2.1' into v1
2 parents 0c7460a + af6313e commit 9d6af61

File tree

6 files changed

+21
-24
lines changed

6 files changed

+21
-24
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Transcoder Changelog
22

3+
## 1.2.1 - 2018.08.23
4+
### Changed
5+
* Fixed namespacing issues
6+
37
## 1.2.0 - 2018.08.22
48
### Added
59
* Added the ability to encode to animated `.gif` files

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nystudio107/craft-transcoder",
33
"description": "Transcode video & audio files to various formats, and provide video thumbnails",
44
"type": "craft-plugin",
5-
"version": "1.2.0",
5+
"version": "1.2.1",
66
"keywords": [
77
"craft",
88
"cms",
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
/**
2-
* Image Optimize plugin for Craft CMS
3-
*
4-
* Image Optimize JS
5-
*
6-
* @author nystudio107
7-
* @copyright Copyright (c) 2017 nystudio107
8-
* @link https://nystudio107.com
9-
* @package ImageOptimize
10-
* @since 1.2.0
11-
*/
12-
131
// Import our CSS
142
import styles from '../css/app.pcss';
3+
4+
const main = async () => {
5+
};
6+
7+
main().then({});

src/services/Transcode.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function getVideoUrl($filePath, $videoOptions): string
187187
}
188188

189189
// If the video file already exists and hasn't been modified, return it. Otherwise, start it transcoding
190-
if (file_exists($destVideoPath) && (filemtime($destVideoPath) >= filemtime($filePath))) {
190+
if (file_exists($destVideoPath) && (@filemtime($destVideoPath) >= @filemtime($filePath))) {
191191
$url = $settings['transcoderUrls']['video'] ?? $settings['transcoderUrls']['default'];
192192
$result = Craft::getAlias($url).$destVideoFile;
193193
} else {
@@ -371,7 +371,7 @@ public function getAudioUrl($filePath, $audioOptions): string
371371
}
372372

373373
// If the audio file already exists and hasn't been modified, return it. Otherwise, start it transcoding
374-
if (file_exists($destAudioPath) && (filemtime($destAudioPath) >= filemtime($filePath))) {
374+
if (file_exists($destAudioPath) && (@filemtime($destAudioPath) >= @filemtime($filePath))) {
375375
$url = $settings['transcoderUrls']['audio'] ?? $settings['transcoderUrls']['default'];
376376
$result = Craft::getAlias($url).$destAudioFile;
377377
} else {
@@ -614,7 +614,7 @@ public function getGifUrl($filePath, $gifOptions): string
614614
}
615615

616616
// If the video file already exists and hasn't been modified, return it. Otherwise, start it transcoding
617-
if (file_exists($destVideoPath) && (filemtime($destVideoPath) >= filemtime($filePath))) {
617+
if (file_exists($destVideoPath) && (@filemtime($destVideoPath) >= @filemtime($filePath))) {
618618
$url = $settings['transcoderUrls']['gif'] ?? $settings['transcoderUrls']['default'];
619619
$result = Craft::getAlias($url).$destVideoFile;
620620
} else {

src/templates/_includes/macros.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
{%- endmacro %}
99

1010
{% macro includeCssModule(cssModuleName) -%}
11-
{% from "image-optimize/_includes/include-css-module.twig" import includeCssModule %}
11+
{% from "transcoder/_includes/include-css-module.twig" import includeCssModule %}
1212
{{ includeCssModule(cssModuleName) }}
1313
{%- endmacro includeCssModule %}
1414

1515
{% macro includeJsModule(jsModuleName) -%}
16-
{% from "image-optimize/_includes/include-modern-module.twig" import includeModernModule %}
17-
{% from "image-optimize/_includes/include-legacy-module.twig" import includeLegacyModule %}
16+
{% from "transcoder/_includes/include-modern-module.twig" import includeModernModule %}
17+
{% from "transcoder/_includes/include-legacy-module.twig" import includeLegacyModule %}
1818
{# Browsers with ES module support load this file. #}
1919
{{ includeModernModule(jsModuleName) }}
2020
{# Older browsers load this file (and module-supporting #}

src/templates/_layouts/transcoder-cp.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
{% set welcomeJs = "welcome" %}
44
{% set welcomeLegacyJs = "welcome-legacy" %}
55

6-
{% from "image-optimize/_includes/macros.twig" import includeJsModule %}
7-
{% from "image-optimize/_includes/macros.twig" import includeCssModule %}
6+
{% from "transcoder/_includes/macros.twig" import includeJsModule %}
7+
{% from "transcoder/_includes/macros.twig" import includeCssModule %}
88

99
{% block head %}
1010
{{ parent() }}
11-
{{ includeCssModule("imageoptimize") }}
12-
{% include "image-optimize/_includes/safari-nomodule-fix.twig" %}
13-
{{ includeJsModule("imageoptimize") }}
11+
{{ includeCssModule("transcoder") }}
12+
{% include "transcoder/_includes/safari-nomodule-fix.twig" %}
13+
{{ includeJsModule("transcoder") }}
1414
{% endblock %}

0 commit comments

Comments
 (0)