Plugin Directory

Changeset 2145585


Ignore:
Timestamp:
08/26/2019 10:13:49 AM (7 years ago)
Author:
awslabs
Message:

trunk 3.1.3

Location:
amazon-polly/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • amazon-polly/trunk/README.md

    r2142334 r2145585  
    77| Requires PHP | 5.6 |
    88| Tested up to | 5.2 |
    9 | Stable tag | 3.1.2 |
     9| Stable tag | 3.1.3 |
    1010| License | GPLv3 ONLY |
    1111| License URI | https://www.gnu.org/licenses/gpl-3.0.html |
     
    239239#### Changelog
    240240
     241= 3.1.3 =
     242* Bug Fixing.
     243
    241244= 3.1.2 =
    242245* Bug Fixing.
  • amazon-polly/trunk/README.txt

    r2142334 r2145585  
    55Requires PHP: 5.6
    66Tested up to: 5.2
    7 Stable tag: 3.1.2
     7Stable tag: 3.1.3
    88License: GPLv3 ONLY
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    230230== Changelog ==
    231231
     232
     233= 3.1.3 =
     234* Bug Fixing.
     235
    232236= 3.1.2 =
    233237* Bug Fixing.
  • amazon-polly/trunk/amazonpolly.php

    r2142334 r2145585  
    1717 * Plugin URI:        https://wordpress.org/plugins/amazon-polly/
    1818 * Description:       Create audio version of your posts, translate them into other languages and create podcasts! Amazon Polly is a service that turns text into lifelike speech. With dozens of voices across a variety of languages, you can select the ideal voice and build engaging speech-enabled applications that work in many different countries. The Amazon Polly plugin for WordPress is a sample application that shows how WordPress creators can easily add Text-to-Speech capabilities to written content with Amazon Polly. You can generate an audio feed for text-based content and insert it into an embedded player to increase the accessibility of your WordPress site. The sample code also enables you to publish podcasts directly from your site and make them available for listeners in the form of podcasts. In addition, the plugin allows to translate your text from one language to another using Amazon Translate– which is a neural machine translation service that delivers fast, high-quality, and affordable language translation. Amazon Translate allows you to localize content - such as websites and applications - for international users, and to easily translate large volumes of text efficiently.
    19  * Version:           3.1.2
     19 * Version:           3.1.3
    2020 * Author:            AWS Labs, WP Engine
    2121 * Author URI:        https://aws.amazon.com/
  • amazon-polly/trunk/includes/template-amazon-pollycast.php

    r2142334 r2145585  
    127127        $audio_file      = $amazon_pollycast->get_audio_file_location( get_the_ID() );
    128128        $categories_list = $amazon_pollycast->get_itunes_categories( get_the_ID() );
     129
     130        $index = strpos( $audio_file, '.mp3' );
     131        $audio_file = substr($audio_file, 0, $index+4);
     132
     133
    129134        ?>
    130135    <item>
    131136        <title><?php the_title_rss(); ?></title>
    132         <link><?php echo esc_url( $audio_file ); ?></link>
     137        <link><?php echo get_permalink(); ?></link>
    133138        <pubDate><?php echo esc_html( mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ) ); ?></pubDate>
    134         <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
    135         <enclosure url="<?php echo esc_url( $audio_file ); ?>" length="0" type="audio/mpeg"/>
     139        <description><![CDATA[<?php the_excerpt_rss(); ?>]]></description><?php
     140            $fileSize = 0;
     141            if ($common->is_medialibrary_enabled() && !$common->is_s3_enabled()) {
     142                $fileSize = filesize(getcwd() . str_replace(get_home_url(), "", preg_replace('/\?.*/', '', $audio_file)));
     143            }
     144        ?>
     145        <enclosure url="<?php echo esc_url( $audio_file ); ?>" length="<?php echo $fileSize; ?>" type="audio/mpeg"/>
    136146        <guid><?php the_guid(); ?></guid>
    137147        <itunes:author><![CDATA[<?php the_author(); ?>]]></itunes:author>
Note: See TracChangeset for help on using the changeset viewer.