Open westondeboer opened 7 years ago
It looks like this is an issue in Yahoo but not ESPN. I will look to address a wider issue with ambiguous results coming from searches, which should be a rare occurrence hopefully.
At least on Yahoo, each player is assigned their own ID which is easily determined by the link to their player page. Could maybe implement the option to specify the ID as well (which would only be needed in cases where more than 1 result is found after searching, or if a person just really wanted to ensure the right players were added/dropped). e.g. try adding Washington defense on Yahoo.
Washington is a great example. I did not anticipate so many results to come up, and they also happen to be a hot free agent this week unfortunately. I would still prefer to avoid manually inputting IDs, but I will continue to brainstorm ideas for this one.
I thought about adding the option to include team name, which should cover most cases. A position option would probably cover a lot of cases too. I think you've got to include ID as an option though when dropping a player to ensure there aren't any issues (e.g. Jaron Brown and John Brown are on the same team, and are both listed as J. Brown on the drop page.)
How would this script for for defense teams when there are multiple teams per state? If I wanted the New York Jets, I can only search for New York. I am sure someone can school me on this.