Commit 972bcbf6 authored by Benjamin Bellamy's avatar Benjamin Bellamy 💬
Browse files

feat: add CDN url

feat: rename ?s to ?_from to match podcastindex recommendation
feat: adust map height
feat: display pie chart on 1 column for small and medium screens
feat: handle empty rss user agent
fix: correct bug when importing episode with empty image
fix: add service to FakePodcastsAnalyticsSeeder, resize pie charts so that all lines fit
fix: set page title to ->title when it exists
fix: replace %20 with +

closes #37
parent 384b6b27
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@

# Instance configuration
app.baseURL="https://YOUR_DOMAIN_NAME/"
app.mediaBaseURL="https://YOUR_MEDIA_DOMAIN_NAME/"
app.adminGateway="cp-admin"
app.authGateway="cp-auth"

@@ -19,7 +20,7 @@ app.authGateway="cp-auth"
database.default.hostname="localhost"
database.default.database="castopod"
database.default.username="root"
database.default.password="root"
database.default.password="****"
database.default.DBPrefix="cp_"

# Cache configuration (advanced)
+4 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ PHP Dependencies:
  ([ BSD-3-Clause License ](https://github.com/vlucas/phpdotenv/blob/master/LICENSE))
- [HTML To Markdown for PHP](https://github.com/thephpleague/html-to-markdown)
  ([MIT License](https://github.com/thephpleague/html-to-markdown/blob/master/LICENSE))
- [podlibre/user-agents-php](https://github.com/podlibre/user-agents-php)
- [opawg/user-agents-php](https://github.com/opawg/user-agents-php)
  ([MIT License](https://github.com/podlibre/user-agents-php/blob/main/LICENSE))
- [podlibre/ipcat](https://github.com/podlibre/ipcat)
  ([GNU General Public License v3.0](https://github.com/podlibre/ipcat/blob/master/LICENSE))
@@ -47,6 +47,9 @@ Other:
- [OPAWG/User agent list](https://github.com/opawg/user-agents)
  ([by Open Podcast Analytics Working Group](https://github.com/opawg))
  ([MIT license](https://github.com/opawg/user-agents/blob/master/LICENSE))
- [OPAWG/podcast-rss-useragents](https://github.com/opawg/podcast-rss-useragents)
  ([by Open Podcast Analytics Working Group](https://github.com/opawg))
  ([MIT license](https://github.com/opawg/podcast-rss-useragents/blob/master/LICENSE))
- [client9/ipcat](https://github.com/client9/ipcat)
  ([GNU General Public License v3.0](https://github.com/client9/ipcat/blob/master/LICENSE))
- [GeoLite2 City](https://dev.maxmind.com/geoip/geoip2/geolite2/)
+14 −1
Original line number Diff line number Diff line
@@ -22,7 +22,20 @@ class App extends BaseConfig
    | environments.
    |
    */
    public $baseURL = 'http://localhost:8080/';
    public $baseURL = 'http://127.0.0.1:8080/';

    /*
    |--------------------------------------------------------------------------
    | Media Base URL
    |--------------------------------------------------------------------------
    |
    | URL to your media root. Typically this will be your base URL,
    | WITH a trailing slash:
    |
    |   http://cdn.example.com/
    |
    */
    public $mediaBaseURL = 'http://127.0.0.2:8080/';

    /*
    |--------------------------------------------------------------------------
+4 −3
Original line number Diff line number Diff line
@@ -361,7 +361,8 @@ class Podcast extends BaseController
                            ? $nsItunes->subtitle . "\n" . $nsItunes->summary
                            : $item->description)
                ),
                'image' => empty($nsItunes->image->attributes())
                'image' =>
                    !$nsItunes->image || empty($nsItunes->image->attributes())
                        ? null
                        : download_file($nsItunes->image->attributes()),
                'parental_advisory' => empty($nsItunes->explicit)
+2 −2
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ class Analytics extends Controller
    ) {
        helper('media');

        $serviceName = isset($_GET['s']) ? $_GET['s'] : '';
        $serviceName = isset($_GET['_from']) ? $_GET['_from'] : '';

        podcast_hit(
            $podcastId,
@@ -64,6 +64,6 @@ class Analytics extends Controller
            $fileSize,
            $serviceName
        );
        return redirect()->to(media_url(implode('/', $filename)));
        return redirect()->to(media_base_url($filename));
    }
}
Loading