=== Podwright ===
Contributors: russturley
Tags: podcast, audio, rss, itunes, feed
Requires at least: 5.9
Tested up to: 7.1
Stable tag: 1.2.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight podcast plugin. Add audio to any post, publish an iTunes-compatible RSS feed, and track downloads.

== Description ==

Podwright turns any WordPress site into a podcast publisher without adding complexity you don't need.

**Features:**

* Add an audio/video file, episode number, season, duration, episode type, and summary to any post via a polished meta box
* Media Library picker for episode files and cover art — no hand-pasting URLs required
* Custom frontend player with artwork, seek bar, ±15s skip, and a shortcode `[podwright]`
* Generates an iTunes/Apple Podcasts-compatible RSS feed at `yoursite.com/feed/podcast`
* Stores real enclosure file sizes for better directory validation
* Tracks download counts per episode (skips bots/HEAD) and shows them in the posts list
* Settings page for podcast-level metadata: title, author, artwork, category, explicit flag, and more
* No bloat, no tracking, no external dependencies

== Installation ==

1. Upload the `podwright` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Settings → Podwright** to configure your podcast title, artwork, and other feed details.
4. Edit any post and fill in the **Podwright Episode** meta box to add it to the feed.
5. Submit `yoursite.com/feed/podcast` to Apple Podcasts, Spotify, and other directories.

== Frequently Asked Questions ==

= Does Podwright support video podcasts? =

Yes. The audio URL field accepts MP4 and M4V files in addition to standard audio formats.

= Where is my podcast feed URL? =

It is displayed at the top of **Settings → Podwright**. The URL is `yoursite.com/feed/podcast`.

= Does Podwright send any data to external servers? =

No. All data stays on your server. Download tracking is handled locally via a redirect through your own site.

== Screenshots ==

1. The Podwright Episode meta box on the post editor.
2. The Podwright Settings page.

== Changelog ==

= 1.2.0 =
* Validate episode download redirects and clear Plugin Check findings
* Load player and settings JavaScript and CSS with the enqueue API
* Player footer links: Play in new window + Download
* Standalone popup player page at /podwright-play/{id}/
* Analytics dashboard tab on Settings → Podwright
* Auto-flush rewrite rules on version upgrade

= 1.1.0 =
* Custom frontend player with cover art, progress scrubber, and ±15s skip
* Shortcode: `[podwright]` / `[podwright id="123"]`
* Media Library pickers for episode media and podcast cover art
* Redesigned episode meta box (status strip, file size, episode type)
* iTunes category dropdown; enclosure length from verified file size
* Feed: lastBuildDate, itunes:type, episodeType, image fallback, bot-aware download counts
* Shared helpers, deactivation rewrite flush, video episode support

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.0 =
Visual player upgrade, Media Library pickers, and stronger feed metadata.

= 1.0.0 =
Initial release.
