Download & Extend

arguments in url path are disregarded in iTunes

Project:iTunes
Version:6.x-1.6
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

This is a great module and saved me a lot of work.
I have successfully set up a feed URL and am passing some arguments to filter the audio content of the feed (by chapter and section). This works when just looking at the feed in a browser, but when subscribing in iTunes and adding the arguments to the feed URL the feed returns all audio files, not just the chapter specific ones. I have had done this before with custom php; passing arguments into the feed through iTunes. Why doesn't this work with this module. Am I overlooking something?
Thanks for your help.

Comments

#1

Could you export your view and post it? I think it'd be much easier to see what's going on that way.

#2

Status:active» postponed (maintainer needs more info)

#3

Thanks for taking the time to look at my code, drewish.
Don't know if it matters, but I just wanted to point out the fact that I am changing the argument passed to the view with the php validation code to match terms in my vocabulary (see validate_argument_php)

$view = new view;
$view->name = 'itunes_rss';
$view->description = 'itunes_rss';
$view->tag = 'itunes_rss';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('arguments', array(
  'name' => array(
    'id' => 'name',
    'table' => 'term_data',
    'field' => 'name',
  ),
  'name_1' => array(
    'default_action' => 'ignore',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'php',
    'validate_fail' => 'not found',
    'glossary' => 0,
    'limit' => '0',
    'case' => 'none',
    'path_case' => 'none',
    'transform_dash' => 0,
    'add_table' => 0,
    'require_value' => 0,
    'id' => 'name_1',
    'table' => 'term_data',
    'field' => 'name',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '3' => 0,
      '4' => 0,
      '8' => 0,
      '5' => 0,
      '9' => 0,
      '7' => 0,
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_fixed' => '',
    'default_argument_user' => 0,
    'default_argument_image_size' => '_original',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'blog' => 0,
      'image' => 0,
      'short_answer' => 0,
      'truefalse' => 0,
      'quiz' => 0,
      'forum' => 0,
      'panel' => 0,
      'documentation' => 0,
      'ext_vid' => 0,
      'feed' => 0,
      'fi_audio' => 0,
      'fi_chapter' => 0,
      'fi_pdf' => 0,
      'fi_video' => 0,
      'page' => 0,
      'teacher_page' => 0,
      'tex_grammar' => 0,
      'tex_grammar_pages' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '5' => 0,
      '6' => 0,
      '3' => 0,
      '2' => 0,
      '4' => 0,
      '69' => 0,
      '46' => 0,
      '45' => 0,
      '31' => 0,
      '71' => 0,
      '29' => 0,
      '30' => 0,
      '57' => 0,
      '59' => 0,
      '26' => 0,
      '23' => 0,
      '32' => 0,
      '20' => 0,
      '22' => 0,
      '21' => 0,
      '60' => 0,
      '25' => 0,
      '27' => 0,
      '48' => 0,
      '47' => 0,
      '50' => 0,
      '49' => 0,
      '7' => 0,
      '52' => 0,
      '51' => 0,
      '62' => 0,
      '61' => 0,
      '54' => 0,
      '56' => 0,
      '55' => 0,
      '53' => 0,
      '58' => 0,
      '63' => 0,
      '67' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_node_flag_name' => '*relationship*',
    'validate_argument_node_flag_test' => 'flaggable',
    'validate_argument_node_flag_id_type' => 'id',
    'validate_argument_user_flag_name' => '*relationship*',
    'validate_argument_user_flag_test' => 'flaggable',
    'validate_argument_user_flag_id_type' => 'id',
    'image_size' => array(
      '_original' => '_original',
      'thumbnail' => 'thumbnail',
      'preview' => 'preview',
    ),
    'validate_argument_php' => 'if($argument==\'m4v\'):
return $handler->argument= \'m4v\';
endif;
if($argument==\'pho\'):
return $handler->argument= \'phonetics\';
endif;
if($argument==\'voc\'):
return $handler->argument= \'vocabulary\';
endif;',
  ),
));
$handler->override_option('filters', array(
  'tid_1' => array(
    'operator' => 'or',
    'value' => array(
      '293' => '293',
      '279' => '279',
      '280' => '280',
      '281' => '281',
      '282' => '282',
      '283' => '283',
      '284' => '284',
      '285' => '285',
      '286' => '286',
      '287' => '287',
      '288' => '288',
      '289' => '289',
      '290' => '290',
      '291' => '291',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => 'ch',
      'label' => 'Taxonomy: Term',
      'use_operator' => 1,
      'identifier' => 'tid_1',
      'bef_filter_description' => '',
      'bef_format' => 'bef_hidden',
      'optional' => 1,
      'single' => 1,
      'remember' => 0,
      'reduce' => 0,
      'bef_select_all_none' => 0,
    ),
    'type' => 'select',
    'limit' => TRUE,
    'vid' => '6',
    'id' => 'tid_1',
    'table' => 'term_node',
    'field' => 'tid',
    'hierarchy' => 0,
    'relationship' => 'none',
    'reduce_duplicates' => 0,
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'tid' => array(
    'operator' => 'or',
    'value' => array(
      '259' => '259',
      '4881' => '4881',
      '258' => '258',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => 'a',
      'label' => 'Taxonomy: Term',
      'use_operator' => 1,
      'identifier' => 'tid',
      'bef_filter_description' => '',
      'bef_format' => 'bef_hidden',
      'optional' => 1,
      'single' => 1,
      'remember' => 0,
      'reduce' => 0,
      'bef_select_all_none' => 0,
    ),
    'type' => 'select',
    'limit' => TRUE,
    'vid' => '5',
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'hierarchy' => 0,
    'relationship' => 'none',
    'reduce_duplicates' => 0,
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'fi_audio' => 'fi_audio',
      'fi_video' => 'fi_video',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'tid_2' => array(
    'operator' => 'not',
    'value' => array(
      '4874' => '4874',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'type' => 'select',
    'limit' => TRUE,
    'vid' => '5',
    'id' => 'tid_2',
    'table' => 'term_node',
    'field' => 'tid',
    'hierarchy' => 0,
    'relationship' => 'none',
    'reduce_duplicates' => 0,
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'time',
  'results_lifespan' => '3600',
  'output_lifespan' => '3600',
));
$handler->override_option('items_per_page', 0);
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
  'relationship' => 'none',
  'build_mode' => 'full',
  'links' => 0,
  'comments' => 0,
));
$handler = $view->new_display('feed', 'Feed', 'feed_1');
$handler->override_option('style_plugin', 'itunes_rss');
$handler->override_option('style_options', array(
  'mission_description' => FALSE,
  'description' => '',
  'subtitle' => 'Français Interactif is an online French course from the University of Texas at Austin.',
  'summary' => 'Français Interactif is an online French course from the University of Texas at Austin.',
  'author' => 'First Year French @UT Austin',
  'copyright' => '2010, First Year French @UT Austin',
  'image_url' => '/themes/main/images/fi_itunes_300.jpg',
  'new_feed_url' => 'feed://www.laits.utexas.edu/fi/rss',
  'explicit' => '2',
  'block' => 0,
  'owner_name' => 'First Year French @UT Austin',
  'owner_email' => 'www@mail.laits.utexas.edu',
  'categories' => array(
    '0' => 'Education|Higher Education',
    '1' => '',
    '2' => '',
  ),
  'keywords' => 'audio, video, French, France, vocabulary, phonetics, culture',
));
$handler->override_option('row_plugin', 'node_rss');
$handler->override_option('row_options', array(
  'relationship' => 'none',
  'item_length' => 'fulltext',
));
$handler->override_option('path', 'rss');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('displays', array(
  'default' => 'default',
  'page_1' => 'page_1',
));
$handler->override_option('sitename_title', FALSE);
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('title', 'iTunes');
$handler->override_option('path', 'rss.php');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));