<commit_before><?php 
namespace Podlove\Modules\Seasons;

use Podlove\Model\Episode;
use Podlove\Modules\Seasons\Model\Season;

class Seasons extends \Podlove\Modules\Base {

	protected $module_name = 'Seasons';
	protected $module_description = 'Group your episodes into seasons.';
	protected $module_group = 'metadata';

	public function load() {
		
		// module lifecycle
		add_action('podlove_module_was_activated_seasons', [$this, 'was_activated']);

		// register settings page
		add_action('podlove_register_settings_pages', function($handle) {
			new \Podlove\Modules\Seasons\Settings\Settings($handle);
		});

		add_action('admin_print_styles', [$this, 'scripts_and_styles']);

		add_action('podlove_xml_export', array($this, 'expandExportFile'));
		add_filter('podlove_import_jobs', array($this, 'expandImport'));

		add_filter( "set-screen-option", function($status, $option, $value) {
			if ($option == 'podlove_seasons_per_page')
				return $value;
			
			return $status;
		}, 10, 3 );

		add_action('podlove_append_to_feed_entry', [$this, 'add_season_number_to_feed'], 10, 4);

		add_filter('podlove_episode_form_data', [$this, 'add_season_number_to_episode_form'], 10, 2);
		add_filter('podlove_generated_post_title', [$this, 'set_season_in_post_title'], 10, 2);
		add_filter('podlove_js_data_for_post_title', [$this, 'set_season_in_post_title_js'], 10, 2);

		\Podlove\Template\Podcast::add_accessor(
			'seasons', ['\Podlove\Modules\Seasons\TemplateExtensions', 'accessorPodcastSeasons'], 3
		);

		\Podlove\Template\Episode::add_accessor(
			'season', ['\Podlove\Modules\Seasons\TemplateExtensions', 'accessorEpisodeSeason'], 4
		);
<commit_msg>Fix season order arg<commit_after><?php 
namespace Podlove\Modules\Seasons;

use Podlove\Model\Episode;
use Podlove\Modules\Seasons\Model\Season;

class Seasons extends \Podlove\Modules\Base {

	protected $module_name = 'Seasons';
	protected $module_description = 'Group your episodes into seasons.';
	protected $module_group = 'metadata';

	public function load() {
		
		// module lifecycle
		add_action('podlove_module_was_activated_seasons', [$this, 'was_activated']);

		// register settings page
		add_action('podlove_register_settings_pages', function($handle) {
			new \Podlove\Modules\Seasons\Settings\Settings($handle);
		});

		add_action('admin_print_styles', [$this, 'scripts_and_styles']);

		add_action('podlove_xml_export', array($this, 'expandExportFile'));
		add_filter('podlove_import_jobs', array($this, 'expandImport'));

		add_filter( "set-screen-option", function($status, $option, $value) {
			if ($option == 'podlove_seasons_per_page')
				return $value;
			
			return $status;
		}, 10, 3 );

		add_action('podlove_append_to_feed_entry', [$this, 'add_season_number_to_feed'], 10, 4);

		add_filter('podlove_episode_form_data', [$this, 'add_season_number_to_episode_form'], 10, 2);
		add_filter('podlove_generated_post_title', [$this, 'set_season_in_post_title'], 10, 2);
		add_filter('podlove_js_data_for_post_title', [$this, 'set_season_in_post_title_js'], 10, 2);

		\Podlove\Template\Podcast::add_accessor(
			'seasons', ['\Podlove\Modules\Seasons\TemplateExtensions', 'accessorPodcastSeasons'], 4
		);

		\Podlove\Template\Episode::add_accessor(
			'season', ['\Podlove\Modules\Seasons\TemplateExtensions', 'accessorEpisodeSeason'], 4
		);

{'fraction_non_alphanumeric': 0.14598978672273957, 'fraction_numerical': 0.01021327726043857, 'mean_word_length': 6.4, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6251478', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1113, 'n_words': 187}