Exclude Teacher's Editions from Half and Amazon

From MediaSell

Jump to: navigation, search

This script looks at your titles and notes and excludes items from being sent to Half/Amazon if either the title or notes contain any of the following (in any character-case):

  • teacher's edition
  • teachers' edition
  • teachers edition
  • teacher edition
  • instructor's edition
  • instructors' edition
  • instructors edition
  • instructor edition
  • advance reading
  • proof       (whole word - not part of a word)
if (marketplace == 'Half' || marketplace == 'Amazon') {
  pat = /(teacher|instructor)'?s?'? edition|advance reading|\bproof\b/i;
  if (item.title.match(pat) || item.note.match(pat)) return 0;
}


Personal tools